This is the demo of node js with express framework and mysql.
-
You shoud install node , then npm install express.
-
Copy all file to web folder.
-
then npm install . will download then dependecy package in package.json.
-
How to install node git clone git://github.com/creationix/nvm.git ~/nvm echo "source ~/nvm/nvm.sh" >> ~/.bashrc then relogin
-
How to install express mkdir ~/web , cd ~/web , npm install express ./node_modules/express/bin/express .
-
Copy all file in ~/web
-
npm install .
-
mysql -u user -p db < db.sql
-
Setting your mysql db user password in model/config.js
-
All done just node app.js