- Create a
.env
anddocker-compose.env
file, with data matchingsample.env
. - Start the project with
yarn dev
command. - After starting, open the http://localhost:3000/ URL in your browser.
- On the welcome page you can test the generated services via API Gateway and check the nodes & services. (You will not be allowed to access them without jwt authorization)
In the terminal, try the following commands:
nodes
- List all connected nodes.actions
- List all registered service actions.call webhooks.list
- List the webhooks (call thewebhooks.list
action).
- api: API Gateway services
- webhooks: Webhooks service with
trigger
,list
,create
,update
anddelete
actions.
- db.mixin: Database access mixin for services. Based on moleculer-db
yarn run dev
: Start development mode (load all services locally with hot-reload & REPL)yarn run start
: Start production mode (setSERVICES
env variable to load certain services)yarn run cli
: Start a CLI and connect to production. Don't forget to set production namespace with--ns
argument in scriptyarn run lint
: Run ESLintyarn run ci
: Run continuous test mode with watchingyarn test
: Run tests & generate coverage reportyarn run dc:up
: Start the stack with Docker Composeyarn run dc:down
: Stop the stack with Docker Compose