Built on linux ubuntu
-
Unzip the file.
-
Open the file where you can see folders (app_container, db_container, and docker-compose.yml).
-
Open up the terminal within the folder location (For example in linux os ~/production-app/metigy-assignment$ )
-
Make sure you have docker environment already setup. To check type "docker" without quotes from your terminal
-
Then type "docker-compose up" without quotes then wait for some time to download all the required files and let it build the environment to run the app. Make sure the docker environment is not running any instance of mysql otherwise the app will not build. To check the container type "docker ps -a" and "docker images"
-
If problem persists please run "docker-compose up --build" without quotes.
-
After this if everything goes well, there will be a log message with App is running on port 3000 | on production port 8080 Database connection successful!
-
Open browser and type http://localhost:8080/ and hit enter
Happy coding...