https://github.com/zazk/spring-module
Spring MVC, Java
https://github.com/zazk/spring-module
gradle java postgres spring spring-mvc
Last synced: 8 months ago
JSON representation
Spring MVC, Java
- Host: GitHub
- URL: https://github.com/zazk/spring-module
- Owner: zazk
- License: mit
- Created: 2018-04-07T22:07:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-05T22:13:05.000Z (over 7 years ago)
- Last Synced: 2025-01-09T00:00:25.370Z (10 months ago)
- Topics: gradle, java, postgres, spring, spring-mvc
- Language: Java
- Size: 8.04 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring-module
Spring MVC, Java
### Requirements
Java 8 ( tested with `java version "1.8.0_172` )
### Install dependences
`gradle`
### Running Spring Boot
`gradle bootRun`
### Auto Reloading (Another Terminal)
`gradle -t classes`
### Windows Environment
Install Scoop
`iex (new-object net.webclient).downloadstring('https://get.scoop.sh')`
Install Gradle
`scoop install gradle`
Install Java
`scoop install oraclejdk-lts`
Install PostgreSQL
`scoop install postgresql`
### Setup Postgre SQL
Create User Role PDA with no password
`>psql -U postgres -c "CREATE ROLE pda LOGIN SUPERUSER INHERIT CREATEDB CREATEROLE;" postgres`
Create Database with Role PDA
`>psql -U postgres -c "CREATE DATABASE pda OWNER pda;`
Login to SQL
`>psql -U pda;`
Run the query from the file:
`ROOT_PROJECT/src/main/resources/db/migration/V1__Create_post_table.sql`