=====
Here is my solution to the problem, I used a React frontend and a Python flask backend. I've also provided two separate ways to run the app (in case you don't have docker installed)
- Open the repo in a terminal (make sure docker is running).
- Run
chmod +x start-docker.sh
to provide the shell script with execute permissions. - Run
./start-docker.sh
. - Your docker instance should start automatically, the frontend is on
http://localhost:3000
and the backend is onhttp://localhost:5000
.
- Open the repo in a terminal (make sure docker is running).
- Run
chmod +x start-with-pm2.sh
to provide the shell script with execute permissions. - Run
sudo ./start-with-pm2.sh
(sudo is needed to install pm2, a global npm module). - Your pm2 instance should start automatically, the frontend is on
http://localhost:3000
and the backend is onhttp://localhost:5000
.
- python3
- npm