Simple project that I write using fastapi, motor, and umongo for the backend. VueJS on the frontend.
Run the app using the following command:
docker-compose up -d --build
# or
make up
remove container
docker-compose down
# or
make down
# delete all previous containers and volume included
docker-compose down -v --remove-orphans
# or
make down-all
Monitor log for all services (mongodb, backend/api, frontend/vuejs)
docker-compose logs -f
# or
make logs
Monitor log for backend service only
docker-compose logs -f backend
# or
make logs-backend
docker-compose exec backend pytest
# or
make test-backend
The API Documentation url: http://127.0.0.1:8000/docs
The Blog: http://127.0.0.1:8080