https://github.com/helloakn/api-authorization-nodejs-mysql
Tutorial Project : NodeJs API Multi Authorization Middleware with JWT
https://github.com/helloakn/api-authorization-nodejs-mysql
api jwt multi-au nodejs nodejs-authorization-middleware
Last synced: 8 months ago
JSON representation
Tutorial Project : NodeJs API Multi Authorization Middleware with JWT
- Host: GitHub
- URL: https://github.com/helloakn/api-authorization-nodejs-mysql
- Owner: helloakn
- Created: 2022-03-16T12:46:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-02T07:41:30.000Z (over 3 years ago)
- Last Synced: 2025-04-09T22:52:33.027Z (8 months ago)
- Topics: api, jwt, multi-au, nodejs, nodejs-authorization-middleware
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nodejs API Authorization
[](https://github.com/helloakn/api-authorization-nodejs-mysql) [](https://github.com/helloakn/api-authorization-nodejs-mysql) [](https://github.com/helloakn/api-authorization-nodejs-mysql)
Tutorial How to Create API with multi route prefixs as well as Multi Authorization in NodeJs
## Installation
```
npm install
```
# .env
modify database information in .env as the following sample information.
```
SVR_PORT=3003
SVR_IP="0.0.0.0"
DB_HOST=localhost
DB_PORT=3306
DB_USER=urusername
DB_PASSWORD=urpassword
DB_NAME=jwt_tutorial
ALLOW_FROM=http://localhost:3000%
```
**ALLOW_FROM** is for admin dashboard application
## Run the program
```
npm run start
```