This project is example of using Vikor Turskiy (https://github.com/koorchik) approach for building Node.js backend services
- Install MySQL
- Login to MySQL
- Create database
mysql> CREATE DATABASE spaa;
- Create new user:
mysql> CREATE USER 'spaa_user'@'%' IDENTIFIED BY 'spaa_user_password';
- Grant all privileges to new user:
mysql> GRANT ALL PRIVILEGES ON `spaa`.* to 'spaa_user'@'%';
- Install Node.js
- Cd to main project folder
npm intsall
npx sequelize-cli db:migrate
npm run start
Swagger: http://localhost:5000/api-docs/