https://github.com/indraarianggi/devscale-assignment-3
Devscale MERN Assignment 3 - Todo App
https://github.com/indraarianggi/devscale-assignment-3
Last synced: about 2 months ago
JSON representation
Devscale MERN Assignment 3 - Todo App
- Host: GitHub
- URL: https://github.com/indraarianggi/devscale-assignment-3
- Owner: indraarianggi
- Created: 2024-08-15T04:52:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-19T03:19:55.000Z (over 1 year ago)
- Last Synced: 2024-08-19T04:32:07.259Z (over 1 year ago)
- Language: TypeScript
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# To Do List App
Devscale MERN Course Assignment #3:
- MVC Pattern
- Authentication & Authorization
- Token Rotation
Bonus:
- Docker & Docker Compose
## How to run?
1. Clone this repository
```bash
git clone git@github.com:indraarianggi/devscale-assignment-3.git
cd devscale-assignment-3
```
2. Install dependencies
```bash
pnpm insall
```
3. Congfigure environment variables
Create `.env` file on root directory and copy the contents from `.env.example` into it.
```javasscript
PORT=
MONGO_URI=
JWT_SECRET=
JWT_REFRESH_SECRET==
JWT_ACCESS_EXPIRES_TIME=
JWT_REFRESH_EXPIRES_TIME=
```
4. Run the app
```bash
pnpm dev
```
## How to run with Docker?
1. Start docker
2. Run this command
```bash
docker-compose up
```