A simple and lightweight Content Management System built with Spring Boot, designed for easy content management and administration.
- Framework: Spring Boot 4.0.0
- Language: Java 21
- Database: PostgreSQL
- Build Tool: Apache Maven
- Other: Lombok, Spring Boot DevTools
- MVC Web Architecture
- PostgreSQL database integration
- Spring Boot auto-configuration
- Lombok for reducing boilerplate code
- Maven wrapper for easy build management
src/
├── main/
│ ├── java/
│ │ └── website/garapan/cmsimpel/
│ │ └── CmsimpelApplication.java
│ └── resources/
│ ├── application.properties
│ ├── static/ # Static assets (CSS, JS, Images)
│ └── templates/ # HTML templates
└── test/
└── java/
└── website/garapan/cmsimpel/
└── CmsimpelApplicationTests.java
- Java 21 or higher
- Maven 3.6+ (or use the provided Maven wrapper)
- PostgreSQL database server
git clone <repository-url>
cd cmsimpelCreate a PostgreSQL database for the application:
CREATE DATABASE cmsimpel;
-- Create a user with appropriate permissions
CREATE USER cms_user WITH PASSWORD 'your_password';
GRANT ALL PRIVILEGES ON DATABASE cmsimpel TO cms_user;Update src/main/resources/application.properties with your database configuration:
spring.application.name=cmsimpel
spring.datasource.url=jdbc:postgresql://localhost:5432/cmsimpel
spring.datasource.username=cms_user
spring.datasource.password=your_password
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect# On Windows
mvnw.cmd spring-boot:run
# On Unix/Linux/Mac
./mvnw spring-boot:runmvn spring-boot:runmvnw.cmd test # Windows
# or
./mvnw test # Unix/Linux/MacTo build the application:
mvnw.cmd clean package # Windows
# or
./mvnw clean package # Unix/Linux/MacTo run the packaged JAR:
java -jar target/cmsimpel-0.0.1-SNAPSHOT.jar- The application runs on
http://localhost:8080by default - Hot reload is enabled through Spring Boot DevTools
- Use your favorite IDE with Spring Boot plugin support
This is a basic skeleton application with:
- Spring Boot application configured
- PostgreSQL connectivity
- Lombok integration
- Test framework in place
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Project Link: https://github.com/hendrapaiton/cmsimpel.git
Built with ❤️ using Spring Boot