API to save and update listings
- Download NodeJS 14 LTS
- Install dependencies
npm install
This project uses npm scripts
to build and package the project. To view the scripts:
npm run
npm run package
This produces a zipped file at this project's base directory: listing-api.zip
To generate openAPI documents, run the following file:
openapi/openapi-generator.js
This will create the file: openapi-listing.json
******** Do NOT run against production *********
Scripts are found in: test/_integration
Note: When running tests, you must set the required environment variables
This project uses Jasmine for unit testing.
yarn test
Filter by describe
or it
jasmine **/*.test.js --filter="test_name"
## Useful Links
* https://stackoverflow.com/questions/60149391/how-to-use-jasmine-js-spy-on-a-required-function