The 6 Minute Cloud/Local Dev Roundtrip with Spring Boot

Great developer experiences allow you go from nothing to something amazing in under ten minutes. So I’m always trying to see how much I can minimize getting started experiences. My latest attempt is to deploy a Spring Boot app on Heroku, download the source to a developer’s machine, setup & run the app locally, make & test changes, and then redeploy those changes — all in under ten minutes (assuming a fast internet connection). Here is that experience in about six minutes:

To try it yourself, start at the hello-springboot GitHub repo. Let me know how it goes!

  • Jade Fischer

    Hi James,
    I was I got the Heroku app created but when I went to create the dev environment it didn’t seem to install on my mac when I opened Gradlew. Don’t know what happened but i wasn’t able to see it running on localhost:8080 either. When I went to Atom I didn’t see any Heroku menu either.

    • Sounds like something went wrong with the Gradle build. Maybe it didn’t run correctly from Finder on your Mac? Can you try to run it from the command line?

      • Jade Fischer

        I’m new to Grable how would I r unit from the command line.

        • Open a Terminal and navigate to the directory of the project. Then run: ./gradlew

          Let me know if that works.

          • Jade Fischer

            Ok thank you for the quick response.

          • Jade Fischer

            Hi James, I am still having some issues. I ran ./gradlew and received this message.

            Starting a Gradle Daemon (subsequent builds will be faster)
            :atom
            :dev
            Starting a Gradle Daemon, 1 busy Daemon could not be reused, use –status for details
            Starting a Gradle Daemon, 1 busy Daemon could not be reused, use –status for details
            Continuous build is an incubating feature.
            :compileJava FAILED

            FAILURE: Build failed with an exception.

            * What went wrong:
            Execution failed for task ‘:compileJava’.
            > invalid source release: 1.8

            * Try:
            Run with –stacktrace option to get the stack trace. Run with
            –info or –debug option to get more log output.
            BUILD FAILED

            Total time: 8.149 secs
            :compileJava FAILED

            FAILURE: Build failed with an exception.

            * What went wrong:
            Execution failed for task ‘:compileJava’.
            > invalid source release: 1.8

            * Try:

            BUILD FAILED
            Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

            Total time: 9.554 secs

            Waiting for changes to input files of tasks…
            > Building 50% > :dev

            Does this mean I have to update my Java.

          • Can you verify you have Java 8?

          • Jade Fischer

            I installed the latest which was 8.121. Restarted the computer and confirmed that is was 8.121. Ran ./gradlew –debug and it stated:
            >Execution failed for task ‘:compileJava’.

            > invalid source release: 1.8

            Atom works fine but it doesn’t start up on port 8080

          • It seems like it is still using an older Java for some reason. Maybe via a JAVA_HOME env var. Or a PATH issue.

      • Jade Fischer

        Thanks for the help.

  • phyllis56367

    Its just 6 min clip but i think we have so many thing to learn from here. And those information is more essential to built our career in future. So i like this video so much to watch.

  • cunniff454245

    Its just 6 min clip but i think we have so many thing to learn from here. And those information is more essential to built our career in future. So i like this video so much to watch.