Skip to content

raycohaex/kwetter-microservice

Repository files navigation

raycohaex

Overview

This project is a Twitter clone, following the popular microservice architecture. The primary focus will be on functional requirements, so in this repository you will see minimum functional requirements.

Gateway endpoints

Endpoint Upstream HTTP Method Cache TTL (seconds) Expected body
/tweet POST 30 JSON: userName, tweetBody
/tweet/{tweetId} GET
/user-timeline/{username} GET 30
/social/follow POST 30 JSON: follower(username), followee(username)
/social/user POST 30 JSON: id(guid), userName

Install

Docker

To spin up all Docker containers locally, run; docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d

To get rid of the containers again, run; docker-compose -f docker-compose.yml -f docker-compose.override.yml down

To setup Keycloak after running docker-compose docker exec local_keycloak /opt/jboss/keycloak/bin/add-user-keycloak.sh -u admin -p admin && docker restart local_keycloak note: manually configure Keycloak.

Architecture overview

image

About

The Twitter clone that Elon Musk won't buy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published