To setup the application, first install the dependencies:
$ cd nodejs
$ npm install
The application expects to find Redis at localhost
on port 6379
with no password. These are the default values when installing Redis.
If your Redis server is located elsewhere and/or requires a password, set the value of the REDIS_URL
environment variable to a valid Redis connection URL before starting the application. For example:
$ export REDIS_URL=redis://simon:sssssh@redis.mydomain.com:6390
Start the application as follows:
$ npm run dev
This uses nodemon which will restart the application for you automatically every time you make a code change.