The central API for the Postra ecosystem, built with Spring Boot and Java 21. It handles authentication, post management, and integration with third-party services like Cloudinary.
- 🔐 Secure Auth: JWT-based authentication and Spring Security for protecting API endpoints.
- 💾 Data Management: Efficient post and user data handling using Spring Data JPA with MySQL.
- 🖼️ Image Uploads: Direct integration with Cloudinary for media management.
- 🧹 Content Parsing: Uses JSoup for robust HTML parsing and sanitization.
- 🐋 Docker Support: Ready for containerized deployment with a pre-configured Dockerfile.
- 🛠️ Extensible: A clean, layered architecture designed for easy addition of new features.
- Language: Java 21
- Framework: Spring Boot 3.5.3
- Database: MySQL (via Spring Data JPA)
- Security: Spring Security & JJWT
- Utilities: JSoup (HTML Parsing), Cloudinary SDK (Image Management)
- Build Tool: Maven
- JDK 21
- Maven
- MySQL Database
- Cloudinary Account (for image management)
-
Clone the repository:
git clone https://github.com/TechifyDev1/postra-backend.git cd postra-backend -
Database Setup:
- Create a MySQL database named
postra. - Update
src/main/resources/application.propertieswith your database credentials and Cloudinary API keys.
- Create a MySQL database named
-
Run the application:
./mvnw spring-boot:run
-
Build the JAR:
./mvnw clean install
src/main/java/: Source code including controllers, services, repositories, and models.src/main/resources/: Configuration files and application properties.Dockerfile: Containerization setup for the application.
Internal use and development only.