This is my monorepo experiment repo. Things I'm doing:
- Uses pm2 to manage my various processes.
- Uses docker and docker-compose to create a database, redis server and elastic search server
- Hapi node api with no routes yet
- Create React App frontend
- install yarn
- install docker
- install pm2
clone the project then
yarn install
pm2 start ecosystem.config.js
To run everything inside of docker instead of with pm2 use docker-compose -f docker-compose.qa.yml up
. I will use this to run code in a qa environment, but for local dev I will continue to use pm2. The compose config and dockerfile could be updated to make local dev nicer if you wanted to run your whole local env inside of a bunch of containers.