This is a simple Node.js application implementing user registration and login using passport and node-mysql libraries.
To start with once you clone the repository, run below command from the root of the application to install all dependencies and libraries.:
npm installYou could also run the command :
npm install package.jsonDo install the mysql dependency using the command :
npm install mysqlYou could also include the same into package.json.
To restore the db, use the dump file node.sql and restore the database using the following command :
mysql -u root -p[root_password] [database_name] < node.sqlMake sure you have create a database with the name node :
mysql -u [username] -p [password]
mysql> create database node;