Run the client, server and database all at once with Docker Compose:
docker-compose up -d
The front-end should run on port 3000
, the back-end on port 8000
, and the database on port 27017
.
Make sure that these ports aren't reserved on your machine or you will face an error.
Remove all created images and containers:
docker-compose down --rmi all
GET /posts/
GET /posts/{id}
POST /posts/
PUT /posts/{id}
PATCH /posts/{id}/upvote
PATCH /posts/{id}/downvote
DELETE /posts/{id}