A simple Node JS application that uses MongoDB for local storage and Redis for caching.
To use the application, the following is required:
- MongoDB
- Node JS
- Redis
- PostMan (for testing)
Steps:
- Ensure both MongoDB and Redis is running
- Copy the contents from
.env.example
into a new.env
file in project root directory, and replace values where necessary - Ensure to import the data in
./data/mock.json
into your chosen MongoDB collection usingnpm run setup
command - Run
npm install
to install required dependencies - Run
npm start
to run the application - Use PostMan to test the application, using the supplied collection in
./data/simpleredisapp.postman_collection.json
(and changing the port variable to the one used in server)