Connecting and fetching data from mysql using angularjs [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new to angularjs , can anybody guide me in performing CRUD operations in MYSQL and display in html form using angularjs... to be more precise... I want to store information to customer details such has name,consumer number,contact,address and update the same whenever necessary using java..

Hello and welcome to SO,
I created this diagram in order to make you feel more comfortable with the subject.
As you may see I didn't mention any language: Client, Server nor Database, because the language itself has nothing to do with REST APIs.
Instructions - begginer:
(If you are using PHP, I'd recommend SlimFramework, which is the light, scale, easy to start with, PHP Framework).
1) Pick a server-side language.
2) Create a Database Resource.
3) Pick a Server Side Language.
4) Create 4 Scripts that each does one of each:
Create,Read,Update,Delete.
5) Connect endpoints with each of the scripts, URL -
GET,POST,DELETE,UPDATE.
6) Verify that you can access each of them from the web (authenticated
or not).
7) After you verified that endpoints are working, time to connect
Angular:
7a) First try to create buttons for each action, and link it with
$http.get, $http.post, $http.delete, $http.put actions.
7b) Once it's working you might wanna step up and use ng-resource or
restangular.
P.S: I didn't supply much code information since once you understand what I stated on top, you'd realize that writing code for that isn't really hard.
After you complete these ,
You might wanna start with: Server side and Client side authentication, Performance, Multiple resources and collections, CORS and preflighted requests, and so on.
Good Luck.

Related

How to connect to neo4j database from android app (with java code)? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am developing one android application in java and i am using neo4j as a database for this app.
Lets, consider i will store the static cypher query in a string. Then after the user clicks on the button, i want to send this query(string) to neo4j server and then execute it on neo4j server and return the result.
My question is that, Is it possible? If yes, how can i do this ? Is there any easy/proper way to do?
Any help will be highly appreciated.
If you want to talk directly to Neo4j, you can use either:
The HTTP API
The Binary Bolt Protocol
If you would rather use middleware, there are many many different options:
Java
.NET
JavaScript
Python
Go
Ruby
PHP
...
When building mobile apps my personal preference is to build a standard API in a middleware server then use HTTPS calls from the app (neo4j-graphql-js has also been awesome for a couple projects), but there are enough stacks that you have the freedom to do it your way.

Java Client Serve Architecure [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to build an E learning app using Java. The GUI will be made using JavaFX and for database I will use MySQL. So far application runs fine on localhost. But I want the application to be multi user. I m a little confused because I ve read different options like client/server and RMI. What would be the best approach in this case? For example, if the database is on another computer, and several clients will run the app (the app will contain both GUI part and database operations part via JDBC) is it ok? Or do I need to separate client part (like GUI) from actual database operations (Server part)? What about RMI? Does it make sense to use RMI in this case?
In the database the app will store user credentials and user progress. I will grateful if someone could help me clarify this
I would NOT recommend exposing the DB to the Internet.
I would recommand implementing an REST-API for the Communication between DB and Client (JavaFX GUI). The big advantage is that you can control which operations can be executed against the DB and which not. I dont now about RIM btw.

Android App with Online Database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i'm creating an app wherein the database are uploaded online without website, the concept of the app is like Waze app. I dont know where to start im asking for ideas and help. do i need to create a web server?how?i will mark this correct for those who can answer thanks.
This is not a simple task because it relies on many parts doing its proper job... In order to do what you want to do you need basically 5 things:
1.- Server: which will feed live information to the app.(There is a ton of servers that can be used to get this part done. If you are used to, or willing to learn php, I suggest you to start researching XAMPP (it uses Apache server running php stuff) [https://www.apachefriends.org/es/index.html]).
2.- Database: Most likely the server will need to work with information stored in some place. databases are perfect for just that. XAMPP also comes with MySQL which happens to be the most popular open source database out there.
3.- Format :You need to determine how the information will be passed from the server to the mobile device. The most common ways are: JSON which is plain text, XML that also is plain text but formatted diferently. this is important because you have to send the information from the server using this format and also your mobile devices will need to interpret the information in this format.
4.- Choose a way to send and recive the information : i would suggest Http/Ip protocol for this, as it is very common. Investigate Http requests and responses.
5.- Your device must be listening (or asking) for the content : the device will have to implement some sort of timer to ask the server for new information. This is determined by the logic and prupose of what you wish to do.
do i need to create a web server?
Yes! You need to create a web server, then, a webservice (database query etc...) which communicate between your application and your webserver. I think that all!

Server side application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
for my new project I need to write server-side application that will serve some of simple requests. I have no experience of writing server-side application, so I need some advice.
The problem is that I don't know how to start; I've spent couple of hours searching google for some guidelines, but I got nowhere.
I need to write application that will ran on the server (I've installed Ubuntu server in VirtualBox and used briged connection, so I can access it from my network) and will serve some requests:
connnect to server
authorize user (check user and his pass in db)
store some data in db on connection (for example IP address)
I am not sure which language would be best to use and what do I need to know to implement that app. This is my private project, which I came up with to learn something new; until now I have always written apps that ran locally (usually in Java/C/Python).
I've seen some tutorials on PHP and Django, but I am not sure if I am going in the right direction.
Thanks in advance for all help :)
I would prefer to you meteorjs look at www.meteor.com the reason why im prefering this to you is that i was in the same position as you one month ago and i,m amaized with meteorjs. Also have a look at derbyjs. This frameworks are built on top of node.js it allows you to write only javascript end to end.
Look at install.meteor.com you will find a quick install bash file.
At the end you can do this with any of the languages you mentioned. Write with what you like the most.

Website with Java algorithms embedded into the site [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Hi I want to create a small web application which will take inputs such as 80 and 120 and return the GCD of those numbers. I want to write the logic in Java. When the user enters 80 and 120 and clicks on calculate button, the values must be passed to the algorithm and return the answer to be displayed on the application again. How do I link the java algorithm to the html page in order to achieve this? Kindly suggest. Is there no other way of doing this other than creating a Java applet for this and deploying it on the application? Kindly help.
Use "Applets" if you want the Java code to run in the users browser and not on a remote server.
Applets are, however, a waning technology due to the numerous attacks that has gone through the JVM to avoid the security checks in the browser, so your users will most likely not see the experience you want them to. Additionally I believe that the ability for the Java program to interact with its surrounding page has been crippled again for security reasons.
Your best bet is to use Java for server side code only (which it is quite fine for - Google Application Engine is perhaps the easiest way to get started) and to use JavaScript for client side code.

Categories

Resources