This is a Reddit clone built using Java Spring. It allows users to create accounts, submit posts, upvote and downvote posts, and comment on posts.
- Java Spring
- Spring Boot
- Spring Data JPA
- PostgreSQL
- User account creation and management
- Post creation and management
- Upvoting and downvoting of posts
- Commenting on posts
- Sorting of posts by popularity, date, and relevance
- Clone the repository:
git clone https://github.com/Ahmed-Elgohary1/reddit-clone.git
- Create a PostgreSQL database and update the application.properties file with your database credentials:
spring.datasource.url=jdbc:mysql://localhost:5432/reddit_clone spring.datasource.username=admin spring.datasource.password=admin
- Build and run the application:
./mvnw spring-boot:run
- Open your web browser and navigate to http://localhost:8080 to view the application.
-
Create an account by clicking on the "Sign Up" button and filling out the registration form.
-
Log in to your account by clicking on the "Log In" button and entering your credentials.
-
Create Subreddit.
-
Submit a post by clicking on the "Submit Post" button and filling out the post form.
-
Upvote or downvote a post by clicking on the arrows next to the post.
-
Comment on a post by clicking on the "Comment" button and filling out the comment form.
-
Sort posts by popularity, date, or relevance by clicking on the corresponding buttons.
Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.