This project is a Spring Boot-based blog platform, developed following the tutorial by Aaron Bourne on the Devtiro Community webpage.
- Category system for organizing posts
- Flexible tagging system that supports multiple tags per post
- Post creation with draft and published states
- Filtering functionality for both categories and tags
- User authentication
This setup assumes you're using Docker for the database and Node.js for the frontend.
-
Install and Run Docker:
- Download and install Docker Desktop.
- Start Docker Desktop.
-
Set up the Database with Docker Compose:
-
Navigate to the project's root directory in your terminal.
-
Run the following command to start the database container (assuming you have a
docker-compose.ymlfile configuring your database):docker-compose up -d
- The
-dflag runs the container in detached mode (in the background). - Ensure that your
application.propertiesorapplication.ymlfile is configured to connect to the docker database.
- The
-
-
Install Node.js:
- Download and install Node.js.
-
Install Frontend Dependencies:
-
Navigate to the frontend directory in your terminal.
-
Run the following command to install the necessary Node.js dependencies:
npm install
-
-
Run the Frontend Application:
-
Run the following command to start the frontend development server:
npm run dev
-
-
Run the Spring Boot Backend Application:
-
run the spring boot application:
./mvnw spring-boot:run
-
-
Access the Application:
- Open your web browser and visit
http://localhost:5173/(or the appropriate port specified by your frontend).
- Open your web browser and visit