https://github.com/arpit2438735/cache-api
https://github.com/arpit2438735/cache-api
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arpit2438735/cache-api
- Owner: arpit2438735
- License: mit
- Created: 2018-05-11T12:54:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T15:13:34.000Z (almost 7 years ago)
- Last Synced: 2025-01-14T08:32:15.443Z (4 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cache API
REST API for cache API## Requirements
- Mongo
- Node >= v8## Running in dev environment
1. Clone the repo and cd into the folder.
```
git clone [email protected]:arpit2438735/cache-api.git
cd cache-api
```
2. Make a copy using
```
cp .env.example .env
```3. In your `.env` file, replace the env variable as described below:
a. `PORT` available port to run the app from.
b. `NODE_ENV` specify if development or production
c. `MONGO_URI` URL of the database server.
d. `MAX_CACHE_ENTRIES` Maximum number of entries that should be stored in the cache.
4. Install all npm dependencies
```
npm install
```5. Start the app
```
npm start
```