Simple web-application on Spring
- Clone this repo
- Setting DB
- Create
application-local.propertiesinsrc/main/resources/ - Define these variables
spring.datasource.url(jdbc:postgresql://localhost:5432/blog_springe.g.)spring.datasource.username(postgrese.g.)spring.datasource.password(1234e.g.)spring.datasource.driver-class-name(org.postgresql.Drivere.g.)spring.sql.init.platform(postgresqle.g.)spring.jpa.hibernate.ddl-auto(updatee.g.)
- Create
.envfile and define these variablesDB_USER(must be the same withspring.datasource.username,postgrese.g.)DB_PASSWORD(must be the same withspring.datasource.password,1234e.g.)DB_NAME(must be corresponding tospring.datasource.url,blog_springe.g.)
- Run DB
docker-compose up
- Create
- Run the app
mvn spring-boot:run(or via your IDE)