Skip to content

leo-proger/Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog

Simple web-application on Spring

Screenshot 2025-08-10 224136 Screenshot 2025-08-10 224147 Screenshot 2025-08-10 224206 Screenshot 2025-08-10 224219

How to run it

  • Clone this repo
  • Setting DB
    • Create application-local.properties in src/main/resources/
    • Define these variables
      • spring.datasource.url (jdbc:postgresql://localhost:5432/blog_spring e.g.)
      • spring.datasource.username (postgres e.g.)
      • spring.datasource.password (1234 e.g.)
      • spring.datasource.driver-class-name (org.postgresql.Driver e.g.)
      • spring.sql.init.platform (postgresql e.g.)
      • spring.jpa.hibernate.ddl-auto (update e.g.)
    • Create .env file and define these variables
      • DB_USER (must be the same with spring.datasource.username, postgres e.g.)
      • DB_PASSWORD (must be the same with spring.datasource.password, 1234 e.g.)
      • DB_NAME (must be corresponding to spring.datasource.url, blog_spring e.g.)
    • Run DB docker-compose up
  • Run the app mvn spring-boot:run (or via your IDE)

About

Simple web-application on Spring

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published