Skip to content
A Todo-Backend implementation with Spring Boot
Java Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.vscode
gradle/wrapper
postgres
src
.gitignore
README.md
build.gradle
docker-compose.yml
gradlew
gradlew.bat

README.md

spring-todo

A simple api for a todo application built with Spring Boot, adhering to the spec described at https://www.todobackend.com/.

Installation

  • Clone this repo
  • Install Java (at least 8), docker
  • Start the postgres container: docker-compose up -d
  • Run the tests: ./gradlew
  • Boot the application: ./gradlew -Dspring.profiles.active=dev

Running the test harness

  • Clone down this repo and cd into it
  • Run ./gradlew bootRun -Dspring.profiles.active=dev to boot up the app
  • Navigate to this link to run tests.

Publishing the postgres docker image to dockerhub

Publishing the postgres image so that CI can use it:

  • cd into ./postgres
  • Run docker build -t saylerb/spring-todo:0.0.1 .
  • Run docker login
  • Run docker push saylerb/spring-todo:0.0.1

Preventing tests run on heroku

For now I've manually set the build command by running this heroku CLI command:

heroku config:set GRADLE_TASK="build -x test -x databaseTest"
You can’t perform that action at this time.