An open API service indexing awesome lists of open source software.

https://github.com/alessandrogelmi/api-auth-template

A simple api template with authentication built with Node.ts and Express
https://github.com/alessandrogelmi/api-auth-template

authentication express mongodb nodejs template typescript

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://documenter.getpostman.com/view/13608883/UzBiQook)

## 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