The back-end of DEVils-Scrum-Tool is created with Spring Boot, using Gradle as build tool and Hibernate to connect with the PostgreSQL database. Java 11 is required. Open a new bash instance to run server:
./gradlew bootRun --args='--spring.profiles.active=test'
Check it on http://localhost:8765/api/hello (Message: "Greetings from Spring Boot!")
- abcd@ef / abcd1234!
- abcd@efg / abcd1234!
- abcd@efgh / abcd1234!
- Install postgresql
- Create a new database with name
scrumtool
:psql> CREATE DATABASE scrumtool;
- Then log in (may need root privileges):
sudo -u postgres psql -d scrumtool
- Import the database (./src/main/resources/schema.sql)
psql> \i /absolute/path/to/schema.sql
./gradlew bootRun --args='--spring.profiles.active=dev'
./gradlew build -x test
./gradlew test
./gradlew spotlessApply
- Install
docker-compose
- Build server and database images together with docker-compose
docker-compose up --no-start
- Start the server and database containers
docker-compose start
- Stop them with
docker-compose stop
- Login to heroku and create a new project
- Add postgresql add-on:
heroku addons:create heroku-postgresql
- On
./src/main/resources/application-heroku.properties
applyoriginRequestUrl
ashttps://your-frontend.herokuapp.com
- Git add, commit and push to heroku master
- Import schema to database:
heroku pg:psql YOUR-HEROKU-DATABASE-NAME < ./src/main/resources/schema.sql