- Create an empty database
- Run the following command from the base of your cloned directory to create the required database structure:
mysql --host=<localhost> --user=<your_username> --password=<your_password> <your_database_name> < employeesdb.sql
- Create a file in the
appdirectory called 'dbconfig.json' - Add the following contents to the file:
{
"connectionLimit": 10,
"host": <database host>,
"user": <username>,
"password": <password>,
"database": <database name>
}
- Run
npm installto build your application - Start application with
npm start - To check that your application is running enter url
http://localhost:3000/employees