This application is used to add new ships and getting list of all ships from/to shipyard
To run the application:
- first the npm modules need to installed with command npm ci
- Mongo database needs to be setup and details for connecting to it provided in Environment variables
- run command npm start
Not finished yet, documentation is empty right now. Swagger documentation for shipyard routes is available when the application is running on http://localhost:4200/doc
To run tests for the application npm ci command needs to be run and then tests can be started by running npm test command. Test coverage is set for 90% for Statements
The application needs following env variables to run successfully:
- MONGO_URI
- MONGO_DB
- MONGO_COLLECTION
MONGO_URI=mongodb://localhost:27017,localhost:27017/
MONGO_DB=shipyard
MONGO_COLLECTION=ships