Backend connection for a demo Lider web app built with Docker, FastAPI, mongoDB and Traefik as reverse proxy
Here you will find a really nice Web App to interact with, also a quick Deployment solution
Live demo lider.co
This project need a .env file in the root directory, with the next variables
DATABASE_HOST=database
DATABASE_USERNAME=root
DATABASE_PASSWORD=secret
DATABASE_URI=mongodb://root:secret@database:27017
DATABASE_NAME=desafio_walmart
First you need to get the source code
git clone https://github.com/Esequiel378/walmart-challenge-backend.git
Since the project use docker-compose, you can deploy locally by running
# build api and database images
docker-compose -f local.yml build
# create api and database containers
docker-compose -f local.yml up
Now you can visit http://localhost:5000/docs to view de api documentation
Or if your in a production environment run
# build api and database images
docker-compose -f production.yml build
# create api and database containers
docker-compose -f production.yml up
Now you can visit your server ip/domain at the /docs
endpoint
or http://localhost/docs to view de api documentation
You can find more about testing with FastAPI here
make test
Run coverage
make coverage
-
Lider demo frontend https://github.com/Esequiel378/walmart-challenge-frontend
-
Deployment solution https://github.com/Esequiel378/walmart-challenge-deployment
-
Implement integration tests
-
Improve database entry search
-
Improve unit tests with 100% coverage goal