Skip to content

Nabil-Salah/mini-twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages