This project simulates a social media post aggregator. It allows users to create, retrieve, and manage social media posts. The simple aggregator was created in a brainstorming session for microservices.
Project additions discussed while brainstorming
- Data visualization
- we could utilize a front-end framework (ex. React) to visualize this data, like creating charts showing post engagement (likes over time, comparrison to previous posts).
- API Integration
- we could integrate with a real social media API (like Twitters API) to fetch real data.
- User Authentication
- User Authentication by implementing the respective social media platforms own sign in methods.
- Analytics Dashboard
- Build an analytics dashboard that tracks metrics like most liked posts, most active users and more.
This project simulates a social media post aggregator. It allows users to create, retrieve, and manage social media posts.
- Clone the repository.
- Navigate to the project directory.
- Run the application using your IDE or the command line:
mvn spring-boot:run
- The application will start on
http://localhost:8080
.
-
Create a Post
- Method: POST
- URL:
http://localhost:8080/posts
- Params:
username
:testuser
content
:This is a test post!
-
Get All Posts
- Method: GET
- URL:
http://localhost:8080/posts
- Create Post Example:
username
:testuser
content
:This is a test post!