1.0.0 • Published 4 years ago

ao-vessel-mgmt-api v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

ao-vessel-mgmt-api

APIs for vessel management

Setup

Install serverless if you don't have it installed globally

npm install -g serverless

Tests

Tests are run in Mocha using sh test-[environment].sh. See file for scripts to run individual test groups (e.g. profiles, tour mgmt, equipment mgmt, etc)

Each test group has setup tasks that remove all documents from the database prior to executing tests. Test data located in the data folder of each test group.

Auth0 users are dependent on an organisation/vessel id in their profile's app_metadata. After running the tourMgmt test group, you must update the org id and vessel id(s) for Auth0 users with the ids of new objects created in thetourMgmt test cases.

Deloy

In the root there are deploy-[environment].sh files that will deploy all infrastructure for the environment specified in the file name.

Deployments are dependent on AWS Profiles, 1 per environment

  • PROD = smartreef
  • QA = smartreef-qa
  • DEV = smartreef-dev