/node-redis-mongo

A simple example of express server with mongo and redis

Primary LanguageJavaScript

node-redis-mongo

A simple example of an express server with mongo, mongoose and Redis.

more information in my blog post: https://medium.com/@haimrait/how-to-add-a-redis-cache-layer-to-mongoose-in-node-js-a9729181ad69

Installation

git clone https://github.com/haimrait/node-redis-mongo.git
cd node-redis-mongo
docker-compose build

Prerun configuration

  1. Make sure that you have docker installed on your machine.
  2. Make sure you have a docker-compose and docker cli installed

Run webserver

docker-compose up

License

MIT