Step 2 - Grab hydra CLI tools
With access to Redis you should now install the hydra tools:
Make sure you're using NodeJS 6.2.1 or greater - Hydra is built using ES6!
$ sudo npm install -g yo generator-fwsp-hydra hydra-cli
That installs the handy Yeoman and hydra generator and command line client.
Let's configure the Hydra command line client.
$ hydra-cli config
redisUrl: 127.0.0.1
redisPort: 6379
redisDb: 15
The above example assumes you have redis installed locally. If not, simply provide theredisUrl
andredisDb
that your cloud service provided.
Now we're all set. Let's build a microservice!