https://github.com/deepurai/integrating-sequelize-orm-and-json-webtoken-in-nodejs
Download zip file and extract it. To test please follow below steps :- Step 1:- Register test user using below url http://localhost:3000/api/users and pass below paramters in body(x-www-form-urlencoded) firstname :- test lastname :- test email :- test@test.com password :- 1234 role :- 1 Step 2:- Hit login api using http://localhost:3000/api/signin to generate json token. you will see below response { "auth": true, "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTU4MTEwMTk1LCJleHAiOjE1NTgxOTY1OTV9.jDtvXgBOdtoOHrQxHxFDpMTlhW8vkMq1yWde_hJz1VM" } Step 3 :- Now create a sample post using http://localhost:3000/api/post. Please send above token in header request(x-access-token -- eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTU4MTEwMTk1LCJleHAiOjE1NTgxOTY1OTV9.jDtvXgBOdtoOHrQxHxFDpMTlhW8vkMq1yWde_hJz1VM) and sample post data in body(x-www-form-urlencoded) with below parameter title :- sample post title description :- sample post description
https://github.com/deepurai/integrating-sequelize-orm-and-json-webtoken-in-nodejs
nodejs nodejs-jwt nodejs-orm sequelize
Last synced: 10 months ago
JSON representation
Download zip file and extract it. To test please follow below steps :- Step 1:- Register test user using below url http://localhost:3000/api/users and pass below paramters in body(x-www-form-urlencoded) firstname :- test lastname :- test email :- test@test.com password :- 1234 role :- 1 Step 2:- Hit login api using http://localhost:3000/api/signin to generate json token. you will see below response { "auth": true, "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTU4MTEwMTk1LCJleHAiOjE1NTgxOTY1OTV9.jDtvXgBOdtoOHrQxHxFDpMTlhW8vkMq1yWde_hJz1VM" } Step 3 :- Now create a sample post using http://localhost:3000/api/post. Please send above token in header request(x-access-token -- eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTU4MTEwMTk1LCJleHAiOjE1NTgxOTY1OTV9.jDtvXgBOdtoOHrQxHxFDpMTlhW8vkMq1yWde_hJz1VM) and sample post data in body(x-www-form-urlencoded) with below parameter title :- sample post title description :- sample post description
- Host: GitHub
- URL: https://github.com/deepurai/integrating-sequelize-orm-and-json-webtoken-in-nodejs
- Owner: deepuRai
- Created: 2019-05-17T16:30:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-17T16:34:21.000Z (over 6 years ago)
- Last Synced: 2025-01-25T07:41:44.521Z (12 months ago)
- Topics: nodejs, nodejs-jwt, nodejs-orm, sequelize
- Size: 9.27 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Integrating-Sequelize-ORM-and-Json-webtoken-in-NodeJs
Download zip file and extract it. To test please follow below steps :-
Step 1:- Register test user using below url
http://localhost:3000/api/users and pass below paramters in body(x-www-form-urlencoded)
firstname :- test
lastname :- test
email :- test@test.com
password :- 1234
role :- 1
Step 2:- Hit login api using http://localhost:3000/api/signin to generate json token. you will see below response
{
"auth": true,
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTU4MTEwMTk1LCJleHAiOjE1NTgxOTY1OTV9.jDtvXgBOdtoOHrQxHxFDpMTlhW8vkMq1yWde_hJz1VM"
}
Step 3 :- Now create a sample post using http://localhost:3000/api/post. Please send above token in header request(x-access-token -- eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTU4MTEwMTk1LCJleHAiOjE1NTgxOTY1OTV9.jDtvXgBOdtoOHrQxHxFDpMTlhW8vkMq1yWde_hJz1VM) and sample post data in body(x-www-form-urlencoded) with below parameter
title :- sample post title
description :- sample post description