Skip to content

CelaDaniel/React-Express-Lerna-Docker

Repository files navigation

Monsters App Start 🚀🏁▶️🚩

image

Step 1: Download Docker Desktop

Ensure Docker Desktop is installed on your machine. You can download it from here.

Step 2: Install python

Step 3: Start Monsters App

  1. Start Application with (No Logs on Console)
npm start

or

  1. Start Application with (Logs on Console)
npm start logs

Step 4: App ports

  1. Find React App here:
http://localhost:3000
  1. Find Express App here:
http://localhost:5000

Notes: The command "npm run start:docker" will start the containers. The mysql db is in path : ./backup/mysql/monsters_db.sql.

When mysql container starts, it will get the bd from ./backup/mysql/monsters_db.sql and restores in the mysql.
On command "npm run exit" the monsters_db.sql will be backuped in ./backup/mysql

Postman Collecion is in path "./postman"

Other Commands

Stop Monsters App (Delete(Containers + Volumes))

npm run exit