Skip to content
ReonX-97Public

About

A social media app made with java-spring

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

pri_media - A Java Spring Social Media Platform

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.


🚀 Features

  • 🔐 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

🛠 Tech Stack

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)

📂 Project Structure

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

🧪 Getting Started (Local Development)

✅ Prerequisites

  • Java 21 or Java 24
  • Maven
  • MySQL or PostgreSQL database

⚙️ Setup & Build

# 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 the Application

# 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.jar

Replace pri_media-0.0.1-SNAPSHOT.jar with the actual JAR name if it differs.

🌐 Access

  • Base URL: http://localhost:8080

🔐 Environment Configuration

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

About

A social media app made with java-spring

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages