Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeoriani committed Apr 9, 2024
1 parent 7d66292 commit ecd23ac
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,24 @@ There is a `Dockerfile` and `docker-compose.yml` file in the root of the repo th
To emulate the scalability, you can run it on your machine:

```
docker-compose -f docker-compose-test.yml up
docker-compose -f docker-compose-test.yml up -d
```

It will up database, two instances of the container and a `nginx` as a load balancer which will distribute the requests across the containers emulating a situation where we have more than a single instance running for the application.
It will up database, two instances of the container and a `nginx` as a load balancer which will distribute the requests across the containers emulating a situation where we have more than a single instance running for the application. The image for the app container is ready and published on docker hub. You can check it here: https://hub.docker.com/r/felipeoriani/tasks-api-nodejs-typescript

But from this repository you will need to run:

```
yarn prisma:reset
```

To migrate and seed the database. Then you can load the postman collection available on the `docs` folder and use it.

Once you are done, just destroy the environment:

```
docker compose -f docker-compose-test.yml down
```

## Tests

Expand Down

0 comments on commit ecd23ac

Please sign in to comment.