- Docker Engine >= 19.03.5
- Docker Compose >= 1.25.4
-
Replace /back-end/.example.env ➡ /back-end/.env and update the environment variable values to your preference
-
From the root directory run:
$ MONGO_USER=yourUserName MONGO_PASSWORD=yourUserPassword docker-compose -f docker/docker-compose.yml build
(yourUserName and yourUserPassword should match the values in your
.env
file) -
Once the build is complete run:
MONGO_USER=dbadmin MONGO_PASSWORD=123123123 docker-compose -f docker/docker-compose.yml up
-
Use a tool like Postman or Insomnia to create posts to localhost:5000/api/post
-
If you haven't done so already complete the first step of getting started
-
From the root directory run:
$ MONGO_USER=yourUserName MONGO_PASSWORD=yourUserPassword docker-compose -f docker/docker-compose.yml build
(yourUserName and yourUserPassword should match the values in your
.env
file) -
Run the test with the following command:
MONGO_USER=dbadmin MONGO_PASSWORD=123123123 docker-compose -f docker/docker-compose.yml up --abort-on-container-exit
- As an avid video gamer I want a way to create blog posts for my video game reviews so that I can share my reviews in a way that my readers can respond to
- Initialize back-end api service
- Create a Dockerfile for the back-end
- Create a Dockerfile for the front-end
- Create a docker-compose config to run both api server and database
- API endpoint for creating, retrieving, (Post)
- API endpoint for updating, and deleting reviews (Post)
- Unit tests for API endpoints