Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Latest commit

 

History

History
28 lines (17 loc) · 937 Bytes

storage-adapter-mongodb.md

File metadata and controls

28 lines (17 loc) · 937 Bytes

storage-adapter-mongodb

Running

  • To start: npm run dev from this folder
  • A GET on localhost:3100/health returns a "Server Up!"
  • A POST on localhost:3100/submodels with the sample input should result in a submodel created in the database.
  • A GET on localhost:3100/submodels returns the list of submodels in the database.
  • A DELETE on localhost:3100/submodels/{_id} deletes a submodel in the database.

The big picture

This component is shown as "MongoDB Application Adapter".

The big picture.

Developer notes

Implementation

Integration Tests

Setup can be done with source ./integration-test-setup.

  • To run integration tests: npm run test-with-integration
  • To run coverage with integration tests: npm run coverage-with-integration To cleanup: ./integration-test-teardown