Home > database >  JS access SQL database
JS access SQL database

Time:05-10

Recently in learning JS, I have a question is not very understanding, JS front-end on principle is should not appear SQL connection string, especially the sa password, the server should have a middle tier, used to verify the legitimacy of the user, and then according to the user to enter a query on the front end legitimate access to database, and returns the result to the front end, the problem is in the middle tier I should use what tools? Which tutorial learning? Also want to ask if only public IP, no domain name can directly use JS to access the database?

CodePudding user response:

Js is front end technology, for it's just a few websites,
Most of the functions can only be done by the backend,

You say the middle tier, common have
Java, the.net, PHP, etc.,

Java applications, looking for a job is easy,
.net to fit easily, the.net core is developing very rapidly, worth learning
The best language Php legend, but man is not cold,

You can choose a kind of learning,

No fixed Ip domain name only, no relationship, as issued website accessible,
Just do not facilitate promotion website,

CodePudding user response:

Gypsy teacher good, I have been think legality verification is realized in TOMCAT or IIS... So what are the existing example of the interface of the program? Before it is best to.net direction, I made some applications of C/S architecture, VB.NET implementation, program is running in the local area network (LAN), and the connection string is compiled, relatively problem is not big, but the study found that JS said when accessing a database in the tutorial is directly write the database connection string, this is too unsafe, learning JS because we wanted to have a small number of public programs, let users through public data returned from the database, but I'm very ignorant when it comes to WEB application development state, since the consult the teacher,
  • Related