Skip to content

Elbialy0/reddit-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit API

Description

This project is a clone of the Reddit API, which allows users to create and manage subreddits, posts, and comments. It is built using Spring Boot and uses a MySQL database to store the data.

Features

  • User registration and authentication (JWT-based security)
  • Subreddit creation and management
  • Post creation and management
  • Comment creation and management
  • Upvote and downvote functionality for posts and comments
  • Follows RESTful best practices

Technologies Used

  • Java 17
  • Spring Boot 3.4.3
  • Spring Security (JWT-based authentication)
  • Spring Data JPA
  • MySQL
  • Lombok
  • MapStruct
  • Maven
  • Java mail API
  • Swagger documentation

Installation

pre-requisites

  • Java 17
  • MySQL
  • Maven

Steps

  1. Clone the repository
  git clone https://github.com/Elbialy0/reddit-api.git
  cd reddit-api
  1. Configure the MySQL database
spring.datasource.url=jdbc:postgresql://localhost:5432/reddit_db
spring.datasource.username=your_username
spring.datasource.password=your_password
  1. Build the project
mvn clean install
mvn spring-boot:run
  1. Access the API at http://localhost:8080
  2. Access the Swagger documentation at http://localhost:8080/swagger-ui/index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published