pri_media is a full-stack social media platform built using Spring Boot and Java for backend development. The platform allows users to register, create profiles, post updates, follow others, and interact via comments and likes — providing a foundation for a modern, scalable social network.
- 🔐 User Authentication (JWT-based or session-based)
- 📝 Create, and delete posts
- 👥 Follow/unfollow users
- 🧾 User profiles with bio and post history
- 📅 Activity feed from followed users
| Layer | Technology |
|---|---|
| Backend | Java, Spring Boot, Spring MVC |
| Database | MySQL / PostgreSQL / H2 |
| ORM | Spring Data JPA (Hibernate) |
| Security | Spring Security |
| API | RESTcontroller APIs |
| Build Tool | Maven |
| Deployment | Docker, AWS/GCP/VPS (optional) |
pri_media/
├── src/
│ ├── main/
│ │ ├── java/com/example/primedia/
│ │ │ ├── controller/
│ │ │ ├── model/
│ │ │ ├── repository/
│ │ │ ├── service/
│ │ │ └── config/
│ │ └── resources/
│ │ ├── application.properties
│ │ └── static/templates/ (if using frontend rendering)
├── target/
├── pom.xml
└── README.md
- Java 21 or Java 24
- Maven
- MySQL or PostgreSQL database
# Clone the repository
git clone https://github.com/your-username/pri_media.git
cd pri_media
# Configure database in src/main/resources/application.properties
# Clean and build the project
mvn clean install# Run directly using Maven (dev mode)
./mvnw spring-boot:run
# OR run the built JAR file
java -jar target/pri_media-0.0.1-SNAPSHOT.jarReplace pri_media-0.0.1-SNAPSHOT.jar with the actual JAR name if it differs.
- Base URL:
http://localhost:8080
Add these to src/main/resources/application.properties:
# Database Configuration
spring.datasource.url=jdbc:mysql://localhost:3306/primedia
spring.datasource.username=your_db_user
spring.datasource.password=your_db_password
# JPA & Hibernate
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true