-
Enter
git clone https://github.com/Kaikai8888/nodejs-interview.git
in the terminal to download the project folder -
Install mySQL and use mySQL workbench to create the database,
todo_dev_insight_eye
with following SQL script
DROP DATABASE IF EXISTS todo_dev_insight_eye;
CREATE DATABASE todo_dev_insight_eye;
- Modify MySQL username, password in
./config/config.json
- Enter
npx sequelize db:migrate
in the terminal to create tables in the database - Enter
npx sequelize db:seed:all
in the terminal to create seed data - Enter
npm run dev
in the terminal to run app.js with nodemon to start local server - Enter http://localhost:3000 in the browser and visit the website