N
N
Nodebootstrap
Search…
Usage - Microservices Mode
If you created NodeBootstrap project in microservices mode, you can control its lifecycle entirely using make commands.

Run/Stop container:

1
# run:
2
> make start
3
# stop:
4
> make stop
5
# clean rebuild:
6
> make clean
Copied!

Inspecting health of the containers:

1
> make ps
Copied!

Monitoring Logs:

1
> make logs
Copied!

Running Automated Tests

    1.
    Make sure the microservice is up (if not: run make clean or make start)
    2.
    Run: make test
Coverage reports are stored under coverage sub-folder.

Installing a new package

Installing a package:
1
npm run install-package <packagename>
Copied!
Install a package in dev-dependencies:
1
npm run install-dev-package <packagename>
Copied!

Database Migrations (Currently: MySQL)

1
# Create migration:
2
> npm run migration-create <migration-name>
3
# e.g.:
4
> npm run migration-create create-users-table
5
# Run migrations:
6
> make migrate
Copied!
Last modified 1yr ago