cuor-mission-management-api
v1.2.5
Published
Api for managing rules and states for related order-load creation and mission creation
Downloads
3
Readme
cuor-mission-management-api
cuor-mission-management-api
is a microservice for managing automation of mission creation for the freights that fullfill the rules. The API wraps the postgres db, in which three tables exist, lane_rule
for the source order rules, load_creation_action
for the related order creation rules, and related_load_creation
for managing related order creation and mission chaining statuses.
Setting up for local development
- Postgres DB
- Postgres instance defined in docker-compose.yml can be containerized and run by invoking
docker-compose up -d
- Data Migration
- Migrations utilize TypeORM's Query Runner API. For data migrations, developer is strongly encouraged to use the TypeORM's migration feature to manage and track the updates to the database schemas.
Environment variables for local run
# app values
DEPLOYMENT_ENVIRONMENT=local
# logger
LOGGER_LEVEL=error
# postgres
POSTGRES_HOST=localhost
POSTGRES_DATABASE=hlnx-rds-cuor-ue1-local
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=haulynx-postgres
# Auth
AUTH_CLIENT_ID=
AUTH_CLIENT_SECRET=
JWT_SECRET=