Machine readiness preparation for nodejs & express
-install nodejs
-install express
-install express generator
Then Start to Create project
with this command
1. express --view=ejs nodejs-crud =>will created App folder with related sub-folder and contatining
2. cd nodejs-crud =>go into App folder
3. npm install ==> will created the node_moduls folder with all containing
Then install some dependencies for CRUD (will add sub-folder into node_mudes)
1. npm install express-flash --save ===>to send flash message
2. npm install express-session --save ===>to make session like PHP
3. npm install method-override --save ===>to send PUT and DELETE requests
4. npm install mysql --save ===>driver to connect Node.js with MySQL
Then Ready to Programming.!!!!!
Can create CRUD App from https://www.mynotepaper.com/nodejs-simple-crud-with-expressjs-and-mysql its work.!!
Remark : App folder can be copy and move at any place, then only run comand " npm start " again verything's OK.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น