Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Attempt to improve Hyperty deployment guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
pchainho committed Mar 16, 2016
1 parent ffae890 commit 62f7f01
Showing 1 changed file with 57 additions and 2 deletions.
59 changes: 57 additions & 2 deletions Installation.md
@@ -1,6 +1,62 @@
#Installation of example of service for dummies
#Installation of Hyperties

You should execute the Following commands in the machine where you have the Reverse-Proxy (assuming you are following [reTHINK testbed guidelines](https://github.com/reTHINK-project/testbeds/blob/master/docs/platformInstallationGuide.md)).

## Requirements:

* At least node.js 5.4
* JSPM

## Installation

*In future this won't be required*

Execute:

```shell
jspm install
```

and

```shell
npm install
```

## configuration

Set your domain name at `system.config.json` e.g.:

```
{
"domain" : "hybroker.rethink.ptinovacao.pt"
}
```

Provision your App Redirect-URI into the IDPs you want to support. At this point, only Google is Supported and the following [Google Dev account](https://console.developers.google.com/apis/credentials?project=my-openid-project-1138) should be used:

openidtest10@gmail.com / testOpenID10

For "hybroker" domain, the redirect uRI for examples (including Hello World), should be:

`https://hybroker.rethink.ptinovacao.pt/examples/`

## Launch the App and Catalogue Server

Start the Local Catalogue server and Web Application Server:

`npm start`

In case you have problems starting the HTTPS server pls ensure there is no other service using HTTPS port 443. If the problem persists, execute:

`http-server --cors -S -p 443 -C rethink-certificate.cert -K rethink-certificate.key`

You can test the App opening the Browser at:

`https://<your-domain.com>/examples/`

*I think the procedures below are outdated. Pls check*

The service example is a deployed in a node "live-server" with a lot of dependencies. Then you can connect index.html using one of the two google accounts.
openidtest10@gmail.com / testOpenID10
openidtest20@gmail.com / testOpenID20
Expand Down Expand Up @@ -38,4 +94,3 @@ vi system.config.json
npm install -g live-server
npm start &
```

0 comments on commit 62f7f01

Please sign in to comment.