Skip to content

A simple api template with authentication built with Node.ts and Express

Notifications You must be signed in to change notification settings

alessandrogelmi/api-auth-template

Repository files navigation

Auth API Template

A simple API Auth Template for Node.ts and MongoDB projects

Routes available:

  • Sign Up: {local_url}/auth/signup
  • Sign In: {local_url}/auth/signin
  • Refresh Token: {local_url}/auth/refresh
  • Homepage with authentication check middleware: {local_url}/

API Documentation

Local Setup

Clone and install dependencies:

git clone https://github.com/alessandrogelmi/api-auth-template
cd api-auth-template
yarn

Then, rename the env.template file into .env and set your custom variables

NB. The generated .env file is not tracket by git - and must remain not tracked!

Github Template

You can also use this repo as a template by clicking Use this template button

About

A simple api template with authentication built with Node.ts and Express

Topics

Resources

Stars

Watchers

Forks