This project is a community platform developed using Spring Boot. It primarily implements features such as user registration, login, posting, and commenting.
Lifelens is a community platform where users can register, log in, create posts, and comment on others' posts. The goal of the project is to provide users with an interactive community platform.
- User registration and login
- Create posts
- Comment on posts
- Backend: Spring Boot
- Database: MySQL
- Frontend: Thymeleaf, HTML, CSS, JavaScript
- Others: Maven, Git, Docker
- JDK 1.8 or above
- Maven 3.6 or above
- MySQL 5.7 or above
-
Clone the repository locally:
git clone [email protected]:backli1ght/LifeLens-A-Spring-based-Community.git
-
Configure the database:
- Create a new MySQL database.
- Import the provided SQL scripts from the
/resourcesdirectory to set up the required tables and data. - Update the database configuration in the
application.propertiesfile located in the/resourcesdirectory with your local database details.
-
Build the project using Maven:
Navigate to the root directory of the project and run:
mvn clean install
-
Run the project:
Navigate to the
src/main/java/com/nowcoder/communitydirectory and run theCommunityApplication.javafile. This will start the Spring Boot application.Or, run the following command from the root directory:
mvn spring-boot:run
-
Access the application:
Open your browser and go to:
http://localhost:8080This will open the homepage of the community platform where you can register, log in, create posts, and interact with other users.