Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

NestJS + Typeorm codebase containing a full authentification system with roles, sessions and email verification.

License

Notifications You must be signed in to change notification settings

TannerGabriel/Nestjs-Typeorm-Auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nestjs-Typeorm-Auth

NestJS + Typeorm codebase containing a full authentification system with roles, sessions and email verification. It also contains a frontend which is written in Vuejs and shows a sample use of this Authentification API


Getting started

Installation

Clone the repository

git clone https://github.com/TannerGabriel/Nestjs-Typeorm-Auth.git

Switch to the repo folder

cd Nestjs-Typeorm-Auth

Installing dependencies and starting the servers

Backend:

cd backend
npm install
npm run start

Frontend:

cd client
npm install
npm run serve

The backend needs to be configurated using a .env file which needs to hold the following parameters.

# Password encryption
SECRET_KEY=

# Database settings
DB_TYPE=
DB_HOST=
DB_NAME=
DB_PORT=
DB_USER=
DB_PASSWORD=

# Email settings https://nodemailer.com/about/
# Free SMTP accounts https://ethereal.email/
EMAIL_HOST=
EMAIL_PORT=
EMAIL_SECURE=
EMAIL_USER=
EMAIL_PASSWORD=

# General
PORT=3000
URL="localhost"

Author

Gabriel Tanner

Support me

Buy Me A Coffee

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

NestJS + Typeorm codebase containing a full authentification system with roles, sessions and email verification.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •