Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (30 sloc) 1.49 KB

http4k-bootstrap

Create a full deployment pipeline (Github -> TravisCI -> Heroku) of a working http4k application using a single command:

curl -s https://raw.githubusercontent.com/http4k/http4k-bootstrap/master/create-app.sh  \
  -o /tmp/create-app.sh && bash /tmp/create-app.sh

This should generate an output like the following:

Enter your app name: my-awesome-app
Setting up my-awesome-app

Creating Heroku app...
Creating GitHub repository...
Enabling TravisCI...
Preparing application skeleton...
Pushing deployment configuration...

Your application should be now ready:
 * Source code: [...]/my-awesome-app
 * TravisCI: https://travis-ci.org/my-github-user/my-awesome-app
 * Heroku deployment: http://my-awesome-app.herokuapp.com

Prerequisites

  • A GitHub account.
  • A Heroku account.
  • The following commands available in your terminal:
    • jq
    • openssl
  • The following environment variables set:
    • GITHUB_USERNAME set to the user who'll own your application's git repository.
    • GITHUB_PERSONAL_ACCESS_TOKEN for the GitHub Personal Access Token to be used by the script to set up your repository and TravisCI (the owner must be the same user defined above).
    • HEROKU_API_KEY for the Heroku API Key to be used by the script to create your app.
You can’t perform that action at this time.