https://github.com/aswassaw/express-typescript-auth
Membuat sistem Authentication dan Authorization menggunakan Express dan Typescript.
https://github.com/aswassaw/express-typescript-auth
authentication authorization express jsonwebtoken typescript
Last synced: 22 days ago
JSON representation
Membuat sistem Authentication dan Authorization menggunakan Express dan Typescript.
- Host: GitHub
- URL: https://github.com/aswassaw/express-typescript-auth
- Owner: Aswassaw
- License: mit
- Created: 2021-10-07T18:49:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-10T12:01:03.000Z (over 3 years ago)
- Last Synced: 2025-02-17T13:43:37.096Z (4 months ago)
- Topics: authentication, authorization, express, jsonwebtoken, typescript
- Language: TypeScript
- Homepage:
- Size: 208 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Express Typescript Auth
Membuat sistem Authentication dan Authorization menggunakan Express dan Typescript.## Teknologi yang digunakan
- express
- express-validator
- typescript
- bcrypt
- nodemailer
- crypto
- dotenv
- cors
- helmet
- jsonwebtoken
- sequelize
- chalk
- compression
- morgan
- concurrently## Setup
- Clone this repository.
- Install dependencies with `npm i`.
- Setup .env
```
NODE_ENV=developmentDB_HOST=localhost
DB_PORT=3306
DB_NAME=YOUR_DB_NAME
DB_USER=root
DB_PASSWORD=EMAIL_USER=YOUR_GMAIL_USER
EMAIL_PASS=YOUR_GMAIL_PASSJWT_SECRET=YOUR_JWT_SECRET
```
- Compile Typescript with `npm run ts-compile`.
- Run development mode with `npm run dev`.