Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TannerGabriel/Nestjs-Typeorm-Auth
NestJS + Typeorm codebase containing a full authentification system with roles, sessions and email verification.
https://github.com/TannerGabriel/Nestjs-Typeorm-Auth
authentification backend email-verification jwt nestjs nestjs-typeorm passportjs typeorm
Last synced: 3 months ago
JSON representation
NestJS + Typeorm codebase containing a full authentification system with roles, sessions and email verification.
- Host: GitHub
- URL: https://github.com/TannerGabriel/Nestjs-Typeorm-Auth
- Owner: TannerGabriel
- License: mit
- Archived: true
- Created: 2019-08-06T11:34:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-18T19:58:09.000Z (over 2 years ago)
- Last Synced: 2024-08-01T15:35:50.117Z (6 months ago)
- Topics: authentification, backend, email-verification, jwt, nestjs, nestjs-typeorm, passportjs, typeorm
- Language: TypeScript
- Size: 1.07 MB
- Stars: 47
- Watchers: 5
- Forks: 10
- Open Issues: 40
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
git clone https://github.com/TannerGabriel/Nestjs-Typeorm-Auth.git
```Switch to the repo folder
```bash
cd Nestjs-Typeorm-Auth
```Installing dependencies and starting the servers
Backend:
```bash
cd backend
npm install
npm run start
```Frontend:
```bash
cd client
npm install
npm run serve
```The backend needs to be configurated using a .env file which needs to hold the following parameters.
```bash
# 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
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details