Skip to content

This part of a coding challenge that I've made for Waltmart (chile)

Notifications You must be signed in to change notification settings

Esequiel378/walmart-challenge-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Walmart challenge - Project Deployment

Description

This repository's purpose is to handle both Backend and Frontend deploy in the same server for this challenge

Live demo lider.co

Setup

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

The .env files

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

Related Projects

TODO

  • Create a BFF

  • SSL cerificates

About

This part of a coding challenge that I've made for Waltmart (chile)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published