- Install Docker.
- Clone this repo.
- Run
docker-compose up
from the project directory. The frontend (react) should now be visible on localhost:3000, and the backend (node) should now be visible on localhost:8000.
With Docker, all of your containers are basically running on a virtual linux machine. So, you must run migration commands within the container.
- From the project directory run
docker-compose exec backend yarn add <package>
. - Make sure your teammates run
docker-compose build
whenever they eventually get your code changes, so that their backend containers rebuild with the new package.
- Start the servers by running
docker-compose up
from the project directory. - Open up a new shell, and again from the project directory run
docker-compose exec frontend yarn add <package>
. - Make sure your teammates run
docker-compose build
whenever they eventually get your code changes, so that their frontend containers rebuild with the new package.
- Run
docker-compose up -d
to start the containers in the background. - Run
docker-compose logs -ft
to start following the logs with timestamps. (Note - timestamps displayed in UTC - container's default timezone.)