Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 2.23 KB

README.md

File metadata and controls

66 lines (42 loc) · 2.23 KB

Mini Twitter

Mini-Twitter is a backend application crafted to foster connections among individuals, promoting the freedom of expression. It enables users to share their thoughts and facilitates the discovery of like-minded individuals to connect with. Users can create their own profile, shaping their persona within the platform.

Features

  • Very up-to-date tweets that come fast favor comes to using cassandra

  • Users can customize there profiles

  • Users can follow each others updates

Installation

Before proceeding with the installation, ensure you have all prerequests requires by spring boot on your system, you can download and install from the spring boot guide

Also insure that you have docker installed on your machine Guidence

First databases pulling

This install all images required for databases used with one command.(docker compose magic)

docker compose -f databases.yaml -p mini-twitter up -d

or if using Intellij Idea the two >> beside services

for cassandra you will need to create keyspace with name spring_cassandra to connect to

docker exec -it cassandra-tweets bash -c "cqlsh -u cassandra -p cassandra"
CREATE KEYSPACE spring_cassandra WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 1};

for neo4j you will need to create lable with name account to connect to

docker exec -it neo4j-connections cypher-shell -u neo4j -p admin12345
CALL db.labels() YIELD label
             WHERE label = 'account'
             RETURN label;

Now for our massage broker kafka we need to install its image using docker

docker compose -f kafka.yaml -p mini-twitter up -d

or

the two >> beside services

Usage

To use Mini-Twitter run src/main/java/com.minitwitter/MiniTwitterApplication

Examples

Try all api calls using our postman workspace