A reddit clone with features to create a user account, create a subreddit, make a post, upvote a post, downvote a post and write comments on post.
Technologies: Angular, Spring Boot, MySQL
You need to run frontend (Angular) on port 4200 and Backend (Spring Boot) on port 8080. Moreover, you will need to configure mysql in application.properties and run MySQL instance on your machine.
For building and running the application you need:
- Open MySQL workbench
- Create a local instance with username and password
- Set up the following fields with credentials in the application.properties file under src/main/resources:
spring.datasource.url=jdbc:mysql://localhost:{port}/spreddit?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false
spring.datasource.username={your user name}
spring.datasource.password={your password}
There are several ways to run a Spring Boot application on your local machine. One way is to execute the main
method in the com.devdaljeet.spreddit.SpredditApplication
class from your IDE (example - Eclipse).
- Clone the Git repository
$ git clone https://github.com/Dev-Daljeet/spreddit.git
- Open Eclipse
- File -> Import -> Existing Maven Project -> Navigate to the folder where you have the project
- Select the project
- Choose the Spring Boot Application file (search for @SpringBootApplication)
- Right Click on the file and Run as Sprint Boot Application
Alternatively you can use the Spring Boot Maven plugin like so:
$ git clone https://github.com/Dev-Daljeet/spreddit.git
$ cd spreddit
$ mvn spring-boot:run
Firstly, clone down this repository.
$ git clone https://github.com/Dev-Daljeet/spreddit.git
$ cd spreddit
Then, execute the below commands.
npm install
ng serve
or npm start
Open http://localhost:4200/
to view it in the browser
MIT License Copyright (c) 2022 Daljeet Singh
Refer to LICENSE file for full information.