Skip to content

Full Authentication NodeJS TypeScript - Access Token, Refresh Tokens, Node Mailer, email templates

Notifications You must be signed in to change notification settings

maxwellwachira/auth_nodejs_typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authenication - NodeJS, TypeScript

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Description

This is a Bearer Token authentication API built with NodeJS, express and Typescript.
It has the following features

  • User CRUD
  • User Login
  • Access and Refresh Token
  • Authentication Middleware
  • Password Recovery
  • Sending emails via Nodemailer
  • HTML template emails
  • Postgres Sequelize

Table of contents

Prerequisites

  • NodeJS Installed

  • Yarn Package Manager installed. Yarn can be installed using the command below:

npm install --global yarn

Setting-up-Local-Environment

Without Docker

Step 1

clone the repository and navigate to the project directory

git clone https://github.com/maxwellwachira/auth_nodejs_typescript.git
cd auth_nodejs_typescript/

Step 2

Check package.json file and ensure scripts are notated as below:

"scripts": {
    "build": "npx tsc",
    "start": "node dist/index.js",
    "dev": "concurrently \"npx tsc --watch\" \"nodemon -q dist/index.js\""
},

Step 3

Delete the node_modules folder and any 'lock' files such as yarn.lock or package-lock.json if present.

Step 4

Run yarn install to install project dependencies

yarn install

Step 5

final step

npm run dev

Acknowledgement

Special thanks to Nodemailer team

License

license

About

Full Authentication NodeJS TypeScript - Access Token, Refresh Tokens, Node Mailer, email templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published