- Compatible with Ubuntu 20.04 LTS
- Get the packages
apt-get install cmake g++ libcpprest-dev -y
- Install
cpp_redis
- Redis in-memory datastore
Put your actual credentials below.
cmake . -DREDISENDP="example.redis.server.com" -DREDISPORT=12345 -DREDISPASS="secret_password"
make
curl -v --request PUT localhost:8080/api/v1/follow/1/2
curl -v --request DELETE localhost:8080/api/v1/follow/1/2
curl -v --request GET localhost:8080/api/v1/timeline/1
curl -v --request POST --data '{"userId": 1, "content": "Hello World!"}' localhost:8080/api/v1/tweet