Skip to content

spruce-bruce/monorepo-expriment

Repository files navigation

HELLO

This is my monorepo experiment repo. Things I'm doing:

  1. Uses pm2 to manage my various processes.
  2. Uses docker and docker-compose to create a database, redis server and elastic search server
  3. Hapi node api with no routes yet
  4. Create React App frontend

Deps

  • install yarn
  • install docker
  • install pm2

Start

clone the project then

yarn install
pm2 start ecosystem.config.js

Docker-compose

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.