Git Product home page Git Product logo

heroku-mysql-bucktlist's Introduction

Simple REST API for Deployment to Heroku with MSQL

The following web-app was built following guidance from the following article: Deploying a Java Rest API to Heroku. To test locally follow the instructions in the article.

You will need a Heroku account to run the web-app and you can create one here: https://www.heroku.com/signup. Once you have created the app you can run the following commands to log into Heroku and deploy the web-app:

    heroku login
    heroku create

You will need to have a credit/debit card linked to Heroku to avail of the free add-ons for this. To start up the DB on Heroku:

    heroku addons:create cleardb:ignite

To get your connection string and update the spring.datasource.url in application properties with the value that is returned from the command: heroku config

You can then push it to Heroku with the following command:

    git push heroku master

Once it has been deployed you will need to run the following to run your app heroku ps:scale web=1 to scale the web-app to 1 instance. Then you can access and update it via commands to Postman or a similar tool.

Accessing the URL provided by Heroku will perform a GET request to the root of the web-app.

heroku-mysql-bucktlist's People

Contributors

devunderslash avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.