Nodejs
Express
Sequelize
Mysql
Npm
- Install Mysql on version 5.7 (recommended). Obs: If you use docker, you go to the /devops folder and run
docker-compose up
ordocker-compose up -d
that will install and configure. - Database credentials:
- user: root
- password: root
- hostname: localhost
- Install Node.js on version 15.8.0 (recommended).
- Then run the
npm install
command. - Run the command
npx sequelize db:create
(create your database). - Run the command
npx sequelize db:migrate
(create yours tables in database). - Finally, run the
npm start
command to bring up the backend. - Access http://localhost:3000/category or http://localhost:3000/device for test.
application link on heroku: https://api-device-test.herokuapp.com (backend)
application link on heroku: https://app-device-test.herokuapp.com (frontend)