This repository's purpose is to handle both Backend and Frontend deploy in the same server for this challenge
Live demo lider.co
First you need to get the source code for all the repositories
# Api - backend
git clone https://github.com/Esequiel378/walmart-challenge-backend.git
# Web App - frontend
git clone https://github.com/Esequiel378/walmart-challenge-frontend.git
git clone https://github.com/Esequiel378/walmart-challenge-deployment.git
Each of these projects needs its own .env file, you can refere to they README
This project need a .env file in the root directory, with the next variables
DATABASE_HOST=database
DATABASE_USERNAME=root
DATABASE_PASSWORD=secret
They may looks familiar to you, even you may think that you see them before, and yes, you do, in order to build the database container, the project need some variables from de Backend project.
The best way to achieve this, is just creating a symlinc with the Backend .env file, in order to avoid conflicts in the future
# within the root directory
ln ../walmart-challenge-backend/.env .env
Since the project use docker-compose, you can deploy by running
# 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 or http://localhost to view the App running
-
Lider demo frontend https://github.com/Esequiel378/walmart-challenge-frontend
-
Lider demo backend https://github.com/Esequiel378/walmart-challenge-backend
-
Create a BFF
-
SSL cerificates