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 ConsetReceipt/mvcr (cd consentreceipt/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 don’t already have one. Create a heroku account if you don’t 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://protected-brushlands-2917.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:
i.e. goto your new api install – for this example it is at : https://protected-brushlands-2917.herokuapp.com/
(which I changed to mvcr7.herokuapp.com after it was installed)

Then click on the create receipt button

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

and a receipt should render on the right of the screen.

Congratulate yourself!!

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.