VacinaPet
Run with Docker
Running docker-compose up
will start 3 containers:
- vacina-pet: The API accessible via
http://localhost:8000/api
- mongo: The mongodb database. Use the mongo-express as UI to manage the data.
- mongo-express: Simple UI to manage the mongodb. Accessible via
http://localhost:8081
with the creadentials basicuser:123456
Use docker-compose up -d
to avoid printing logs and docker logs vacina-pet --follow
to see only the API logs.
Use docker-compose stop
to stop containers, or docker-compose down
to stop and remove the containers.
MongoDB Test
The MongoDB tests run against a testing database built within the docker configuration. To make them pass locally, the following enviroment variables are necessary:
export TESTING_DB_URI=mongodb://admintest:123456@localhost:27017/testing_database
export TESTING_DB_NAME=testing_database
Frontend
We have a React application as frontend, which is rendered by the golang api, that can be found in the frontend folder.
Once you have the application running, you'll be able to access the frontend and navigate trough the application on http://localhost:8000
.
To learn how to work with the frontend, please read the README placed inside the frontend
folder.