Skip to content

ahmedasal/social-media-demo-microservices-spring-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Media Demo

Goal

Learning microservices using spring cloud, database design and queries practice.

Description

Implementing social media app using old architecture using SQL database and queries to load user feed. This architecture has already reported problems as i used relational database query to get the user feed.

Project Dependency

  • MySql Database.
  • JDK version 17.
  • keycloak v20.0.3.
  • Spring Framework(boot, data, security, cloud, web).

Security

Using keycloak v20.0.3 as authorization server.

How to Run

    mvn clean install
    # run configuration server
    java -jar config-server-0.0.1-SNAPSHOT.jar
    # run discovery service 
    java -jar discovery-service-0.0.1-SNAPSHOT.jar
    # run monitoring
    java -jar monitoring-0.0.1-SNAPSHOT.jar
    # run gateway 
    java -jar gateway-0.0.1-SNAPSHOT.jar
    # run users service
    java -jar users-0.0.1-SNAPSHOT.jar
    # run feed service
    java -jar feed-0.0.1-SNAPSHOT.jar

Endpoints

Services Endpoint Description
Register user http://localhost:9090/users/api/user add user to keycloak
Login user http://localhost:9090/users/api/user/login login user
get user http://localhost:9090/users/api/user/{userName} get user from keycloak
feed http://localhost:9090/feed/api/feed show feed of user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published