Skip to content

JWT Authentication Using TypeScript, Express.js, & MongoDB

Notifications You must be signed in to change notification settings

saidMounaim/Auth-TS

Repository files navigation

Auth-TS

JWT Authentication Using TypeScript, Express.js, & MongoDB

Features:

  • Authentication

Technology Stack:

  • TypeScript
  • Node.js
  • Express.js
  • MongoDB
  • JWT

Default urls:

  • Login User : POST METHOD
    localhost:5000/api/auth
  • Register User : POST METHOD
    localhost:5000/api/auth/register
  • Get All Users : GET METHOD
    localhost:5000/api/auth/

Usage

Env Variables

Create a .env file in then root and add the following

PORT = 5000
MONGO_URI = your mongodb uri
JWT_SECRET = 'abc123'

Install Dependencies

npm install

Run App


# Run in dev mode

npm run server

  • Version: 1.0.0
  • License: MIT
  • Author: Said Mounaim

About

JWT Authentication Using TypeScript, Express.js, & MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published