An open API service indexing awesome lists of open source software.

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

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 [email protected]: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
```