An open API service indexing awesome lists of open source software.

https://github.com/leo-proger/blog

Simple web-application on Spring
https://github.com/leo-proger/blog

blog mvc-architecture spring spring-boot website

Last synced: about 2 months ago
JSON representation

Simple web-application on Spring

Awesome Lists containing this project

README

          

# 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)