Skip to content

fedeizzo/EPOC

Repository files navigation

Build Status

EPOC

Table of contents

Initialize

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 .

Run

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.

Develop

In order to run EPOC in development mode some steps are required:

  1. set SETTINGS_JWT_SECRET_OR_PUBLIC_KEY inside .env file
  2. run docker-compose -f docker-compose.dev.yaml -d up
  3. run npm run develop

Production

In order to run EPOC in production mode some steps are required:

  1. set SETTINGS_JWT_SECRET_OR_PUBLIC_KEY inside .env file
  2. set MONGODB_URI inside .env file
  3. run docker run --name epoc -d --rm epoc:latest

Tips

  • 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

Helpful commands

Foal

foal generate controller
foal generate model
foal generate hook
foal generate service