Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 2.17 KB

README.md

File metadata and controls

50 lines (36 loc) · 2.17 KB

Deploy to Heroku

Please use GitHub Fork feature for this challenge

Deploy the code to Heroku and see how does the heroku works; we will provide you a sample implementation for Web API Server. See the document to learn how to deploy.

Step 1 - 1: Create Heroku Account

Make your own account in Heroku. Skip this step if you had already.

Step 1 - 2: Create an application in Heroku

Once you made your own heroku account, create an new application. We recommend to fill App Name by yourself; we use App Name in next step.

Step 2: Edit Procfile for deployment

Heroku require to have Procfile, the file which specifies what command to run for deployment. Please investigate commands that you'll need and edit the Procfile.

Step 3: Let's Deploy!

For documents about deployment, please visit this page. We recommend to use GitHub Integration. By using it, heroku application will be automatically deployed through GitHub Webhook.

Notes: Buildpacks

In some frameworks, you would need to specify buildpacks explicitly.

Step 4: Edit account.json

Once you create your heroku application, write your application name as the value of heroku_appname in account.json. Application name is the value that you set as App Name.

{
  "heroku_appname": "<Write your Heroku application name here>"
}

Step 5: Run the test!

Run the test to check whether you have deployed successfully or not! You can check specification from files in specifications directory, file ends with .spec.js.

Run commands in below to install required modules and run test.

$ npm install                      # Installing modules
$ $(npm bin)/mocha specifications  # Execute the test

Result should be something similar to below.

24 passing (1s)