Development setup:
npm i && npm i -D
npm i -g @foal/cli
docker-compose -f docker-compose.dev.yaml build
Production setup:
docker build -f Dockerfile.production -t epoc/epoc:latest .
You can run EPOC either in development or production mode, refer to the sections below for the one you want. If you want to run this project on your machine follow develop section below.
In order to run EPOC in development mode some steps are required:
- set SETTINGS_JWT_SECRET_OR_PUBLIC_KEY inside .env file
- run
docker-compose -f docker-compose.dev.yaml -d up
- run
npm run develop
In order to run EPOC in production mode some steps are required:
- set SETTINGS_JWT_SECRET_OR_PUBLIC_KEY inside .env file
- set MONGODB_URI inside .env file
- run
docker run --name epoc -d --rm epoc:latest
- There is a .env.sample for easy setup. Inside it is written the command that can be used in order to generate SETTINGS_JWT_SECRET_OR_PUBLIC_KEY
foal generate controller
foal generate model
foal generate hook
foal generate service