Backend task
The repo consists of below APIs:
- GET /cache/key/:keyName //Returns the value corresponding to a key
- GET /cache/allKeys //Returns all keys present
- PUT /cache/:keyName //Update a key's value
- DELETE /cache/:keyName //Delete a key from cache
- POST /cache/deleteAll //Deletes all keys
Local Setup
- Install node.
- Clone the git repo: git clone https://github.com/tirthkundu/cache-module.git in your local working directory.
- Go to the
fashioncloud
directory. - Run
npm install
. - To run the application:
npm start
.
Documentation
Go to the link below to get the access to the API documentation and API testing play ground: https://documenter.getpostman.com/view/10563214/SzYbyxRA?version=latest
Scripts
- To install dependencies: Run
npm install
// Installs dependencies - To start the process: Run
npm start
// Runs the project - To run tests: Run
npm test
// Executes test cases - To run prettier: Run
npm run pretty
// Prettify the files with desired indentation and spacing.