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
- Host: GitHub
- URL: https://github.com/alessandrogelmi/api-auth-template
- Owner: alessandrogelmi
- Created: 2022-03-31T09:30:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-23T11:58:15.000Z (over 3 years ago)
- Last Synced: 2025-10-11T00:04:37.381Z (9 months ago)
- Topics: authentication, express, mongodb, nodejs, template, typescript
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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