The REST API that makes viewing products a blast
The backend API for the MyRetail company responsible for displaying product data and for communication to and from the MongoDB data store.
Made with ExpressJS, Eslint, and Jest.
- NodeJS 13+
- MongoDB
First things first...
npm i # installs dependenciesTime to start the application!
npm startTo run the application with a live dev server that supports hot reloading, run
npm run devTo run the full test suite,
npm testThis project uses the AirBnB ruleset for eslint to enforce code style and syntax errors. Linting is run with the lint command as well as the general npm test command.
To run the linter and check for code style errors,
npm run lintOh no! We have a bunch of linting errors. That's totally fixable! You just need to run
npm run lint:fixThis application can be run with Docker using the supplied Dockerfile to build the image. Your machine must have Docker installed in order to perform the following steps. Download instructions can be found on the Official Docker Website
change directory to the root of the repository, then
docker build -t <username>/myretail-api .docker run -p <public_port>:<private_port> -d <username>/myretail-api- Express - Web Framework
- Jest - Unit Testing Framework
- Eslint - Code Style
- Mongoose - MongoDB utility for NodeJS
- Adeeb Ali - Main Contributor