Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adnanrahic/securing-restful-apis-with-jwt
How to secure a Nodejs RESTful CRUD API using JSON web tokens?
https://github.com/adnanrahic/securing-restful-apis-with-jwt
api authentication authorization database express jwt mongodb mongoose nodejs tutorial
Last synced: 9 days ago
JSON representation
How to secure a Nodejs RESTful CRUD API using JSON web tokens?
- Host: GitHub
- URL: https://github.com/adnanrahic/securing-restful-apis-with-jwt
- Owner: adnanrahic
- Created: 2017-08-03T23:24:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T14:05:59.000Z (about 1 year ago)
- Last Synced: 2024-10-19T01:59:43.184Z (21 days ago)
- Topics: api, authentication, authorization, database, express, jwt, mongodb, mongoose, nodejs, tutorial
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 341
- Watchers: 15
- Forks: 150
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Securing RESTful APIs with JWT
![]()
How to secure a Nodejs RESTful CRUD API using JSON web tokens?
This tutorial will demo how to use JWT with an existing bare bones
API using mongodb as the database.It consist of a User model and controller. The model
defines the data, and the controller will contain all
the business logic needed to interact with the database.It has a db file which will be used to
connect the app to the database, and an app file used
for bootstrapping the application itself.The server file is used to spin up the server and tells the
app to listen on a specific port.The auth folder contains the configuration for registering and
logging users in, signing and verifying tokens.Follow the tutorial for this repository at https://medium.freecodecamp.org/securing-node-js-restful-apis-with-json-web-tokens-9f811a92bb52