README.md

Jbelly

Lightweight Java Blog Engine based on Spring Boot.

Build Status Build status Java CI with Maven

Built with:

  • Spring Boot 3.1 (web, security, jpa, devtools)
  • Thymeleaf (engine + springsecurity6)
  • Java 17
  • MySQL 8
  • Maven
  • JQuery
  • Bootstrap 3
  • Summernote


Before launching need to start MySQL 8 server, then create user and database:

$ mysql -u root -p

$ mysql> CREATE USER jbelly@‘%’ IDENTIFIED BY ‘jbelly’;

$ mysql> CREATE DATABASE jbelly CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;

$ mysql> GRANT ALL PRIVILEGES ON jbelly.* TO jbelly@‘%’;

$ mysql> FLUSH PRIVILEGES;

$ mysql> QUIT

Please, see application.properties for additional settings.


Can be build/run in any IDE that supporting Maven projects or manually:

  • With predefined environment variables (JBELLY_MYSQL_HOST=localhost and JBELLY_MYSQL_PORT=3306):

Full:

$ ./mvnw clean package

$ java -jar -Xmx64m -Xss256k ./target/jbelly-0.0.1-SNAPSHOT.jar

Short:

$ ./mvnw spring-boot:run

  • For the custom host and port, set the PATH variables or run with arguments:

Full:

$ ./mvnw clean package -DJBELLY_MYSQL_HOST=localhost -DJBELLY_MYSQL_PORT=3306

$ java -jar -Xmx64m -Xss256k ./target/jbelly-0.0.1-SNAPSHOT.jar –JBELLY_MYSQL_HOST=localhost –JBELLY_MYSQL_PORT=3306

Short:

$ ./mvnw spring-boot:run -D"spring-boot.run.arguments"=“–JBELLY_MYSQL_HOST=localhost –JBELLY_MYSQL_PORT=3306”

  • Docker:

$ docker compose up


Blog url - http://localhost:8080/

Admin admin@example.com password: 1

User user@example.com password: 1


Please, see SAMPLE-IMAGES.md for more screenshots.


Описание

Lightweight Java Blog Engine based on Spring Boot.

Конвейеры
0 успешных
0 с ошибкой