Skip to content

mohitcodess/basic-auth-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Basic Auth BoilerPlate in Nodejs ! 🔥

Note:

This node js project is using prisma and mysql for db. please make according changes for different db or orm.

To Get Started

create a .env file in the root directory.

PORT = {YOUR_PORT}
JWT_SECRET_KEY = {YOUR_SECRET_KEY}
DATABASE_URL= {YOUR_DATABASE_URL}

    cd ./backend
    npm install
    npm run start

Key Features

  • Authorization using Json Web Tokens
  • assigns role to anonymous user, you can access it using req.role.
  • has basic login and signup funtionality

About

This is a bare minimum basic structure of node js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published