Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/praveenkumar-kalidass/oauth-node
OAuth2.0 implementation in Node.js
https://github.com/praveenkumar-kalidass/oauth-node
expressjs nodejs oauth2 oauth2-server postgresql sequelize swagger swagger-ui
Last synced: about 1 month ago
JSON representation
OAuth2.0 implementation in Node.js
- Host: GitHub
- URL: https://github.com/praveenkumar-kalidass/oauth-node
- Owner: praveenkumar-kalidass
- Created: 2019-02-01T06:26:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T12:06:51.000Z (about 2 years ago)
- Last Synced: 2024-05-27T21:56:17.643Z (8 months ago)
- Topics: expressjs, nodejs, oauth2, oauth2-server, postgresql, sequelize, swagger, swagger-ui
- Language: JavaScript
- Homepage:
- Size: 485 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OAuth-Node
Implementation of OAuth 2.0 in node.js using Sequelize.js## Specification
- Node.js v8.x or latest
- Sequelize v4.x
- Oauth2-Server v3.x## Docs
- [Sequelize](https://sequelize.readthedocs.io/en/v3/)
- [Oauth2-Server](https://oauth2-server.readthedocs.io/en/latest/)## Steps
- [Environment setup](#environment-setup)
- [Database setup](#database-setup)
- [Start Application](#start-application)
- [Swagger](#swagger)### Environment setup
Install node modules
```sh
$ npm install
```### Database setup
Create a sample database with name as `oauth-dev` with
username as `postgres` and
password as `root`
You can change these configurations in `config/config.json`#### Database Migration
```sh
$ npm run migrate
```
#### Seeding Sample data
```sh
$ npm run seed
```### Start Application
Application will run at `http:localhost:3000`#### Run in development mode
Starts `app.js` with `nodemon`
```sh
$ npm start
```
#### Run in production mode
Sets `NODE_ENV` as `production` and Starts `app.js`
```sh
$ npm run production
```### Swagger
Check Swagger Docs at `http:localhost:300/docs`#### Credentials
- Client ID = `11814a7e-53fd-49db-b9e5-69a4370b5827`
- Client Secret = `demo_client_secret`
#### Users
- Admin = `[email protected]`, `demoadmin@123`
- User = `[email protected]`, `demouser@123`