-
Notifications
You must be signed in to change notification settings - Fork 7
Guide to Install Consent Receipt API
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
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:
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:
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
9.) Create heroku remote with git called ‘heroku-mvcr’
10.) Push committed repo into that remote
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:
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
and a receipt should render on the right of the screen.
Congratulate yourself!!