Api
JWT and ORM Sequelize based authorization of NodeJs and JavaScript with roles (admin, user, etc.)
- Node JS
- Express JS
- Mysql
- sequelize
To run the API you have to change some environment variables
PORT: this is the port where API runs.
MySql_URL: url of the Mysql database. (for example if you run this in your local machine you can use this url Mysql://localhost/<name_of_database>)
my_URL: url of the mySql database. (for example if you run this in your local machine you can use this url ://localhost/<name_of_database>)
First edit the **_.env ** file for your database. Later:
# Instalar dependencias
npm install
# create tables
npx sequelize-cli db:migrate
# create seeds
npx sequelize-cli db:seed:all
# To run the API use the command.
npm run dev