Skip to content

Latest commit

 

History

History

todos-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

todos-api

This service is written in NodeJS, it provides CRUD operations over TODO entries. It keeps all the data in memory. CREATE and DELETE operations are logged by sending appropriate message to a Redis queue. The messages are then processed by log-message-processor.

Prerequisites

  • node:8

Configuration

The service scans environment for variables:

  • TODO_API_PORT - the port the service takes.
  • JWT_SECRET - secret value for JWT token processing.
  • REDIS_HOST - host of Redis
  • REDIS_PORT - port of Redis
  • REDIS_CHANNEL - channel the processor is going to listen to

Building and running

npm install
JWT_SECRET=foo TODO_API_PORT=8082  npm start