After checkout of a repository, please perform the following steps in exact sequence:
-
Copy docker-compose.override
$ cp docker-compose.override.yml.dist docker-compose.override.yml
-
Run
make all
-
Run watch -
npm run watch
Alternatively you can do it manually:
-
Copy docker-compose.override
$ cp docker-compose.override.yml.dist docker-compose.override.yml
-
Run
npm i
-
Run
cd ./services/security && npm i
-
Run
cd ./services/scheduler && npm i
-
Run
cd ./services/gateway && npm i
-
Run
cd ./services/mailer && npm i
-
Run
cd ./services/notifications && npm i
-
Run
cd ./services/pdf && npm i
-
Run
npm run docker-build-watcher
-
Run
npm run docker-build-scheduler
-
Run
npm run docker-build-security
-
Run
npm run docker-build-mailer
-
Run
npm run docker-build-notifications
-
Run
npm run docker-build-gateway
-
Run
npm run docker-build-pdf
-
Run watch -
npm run watch
-
If you forgot to run builder run
npm run watch
-
Run
docker-compose up security
(or you can up another service with you want to work) -
Open your browser and go to: http://localhost:50050/api-docs/#/
You should see the swagger panel and request in terminal
This app is fully dockerized, so in order to use it you have to have docker and docker-compose installed. What's more you need to have npm in order to run npm scripts.
-
In order to run specific container run:
docker-compose up <container-name>
-
In order to watch files for dev purpose type:
npm run watch
-
If you need to close all containers run:
npm run down
We're using Plop for routes, models, actions, commands and handlers generation.
npm run plop
We're using Prettier and ESLint to keep code clean. In order to reformat/check code run:
npm run lint
npm run format
Migrations should be stored inside migrations directory of specific service.
Easiest way to create a migration is to generate it from entity/ies. Run inside specific service directory:
npm run generate-migration -- <migration-name>
This should generate a migration for all connected entities.
If you want to read more about RAD modules or check examples of how to set it up, please read the documentation
If you want to check all endpoint definitions of each service, please check RAD modules Redoc