Skip to content

Guide to Install Consent Receipt API

Mark Lizar edited this page Jan 18, 2016 · 15 revisions

Deploy client and server side code base and web server into Heroku:

1.) Deploy Git command line: download the dmg file from
http://git-scm.com/download/mac

2.) Get the client and server side code onto your local machine’s working directory of your choice from the Repo of Project Owners Choice

screen shot 2015-12-07 at 1 31 57 pm

3.) Use cd command to go into CISWG/ConsetReceipt/mvcr

4.) Now, we’ll make ‘mvcr’ as a local git repository (and later we will push them into remote) using git init command, as follows:

screen shot 2015-12-07 at 1 36 00 pm

5.) Add a file called Procfile into mvcr directory with only one line within the file

web: node server.js

This file is needed for heroku to build/deploy a node.js application as part of their buildpack requirement.

6.) commit your repository but they are still in local repo:

screen shot 2015-12-07 at 1 36 16 pm

7.) Create a git account if you dont already have one. Create a heroku account if you dont already have it. Download Heroku toolbelt from the location below:

https://toolbelt.heroku.com/

8.) From mvcr directory where you currently are, login into heroku

screen shot 2015-12-07 at 1 36 21 pm

9.) Create heroku remote with git called ‘heroku-mvcr’

10.) Push committed repo into that remote

screen shot 2015-12-07 at 1 40 52 pm

11.) Url to your App:
Example: https://still-caverns-2170.herokuapp.com/

12.) Make sure at least one instance of your just deployed server is running by applying the following command:

screen shot 2015-12-07 at 1 41 02 pm

13.) Create a Consent receipt to test that deployment is working at:
https://still-caverns-2170.herokuapp.com/