Skip to content

JWT and ORM Sequelize based authorization of NodeJs and JavaScript.

Notifications You must be signed in to change notification settings

CamiloLonM/Sequelize-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication with JWT and Sequelize

Api

Introduction - The Project's Aim...

JWT and ORM Sequelize based authorization of NodeJs and JavaScript with roles (admin, user, etc.)

Technologies

  • Node JS
  • Express JS
  • Mysql
  • sequelize

How to run this App ?

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>)

Install

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

About

JWT and ORM Sequelize based authorization of NodeJs and JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published