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
- Host: GitHub
- URL: https://github.com/leo-proger/blog
- Owner: leo-proger
- License: mit
- Created: 2025-03-17T14:43:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-23T10:45:40.000Z (over 1 year ago)
- Last Synced: 2025-03-29T20:17:00.935Z (about 1 year ago)
- Topics: blog, mvc-architecture, spring, spring-boot, website
- Language: HTML
- Homepage: http://localhost:8080/ ))))
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blog
Simple web-application on Spring

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