Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
HID-1804: setup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rupl committed Jul 9, 2019
1 parent 7587852 commit 3e7f248
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,35 @@

## Running locally

### Prerequisites:
### Prerequisites

* [Docker for Mac](https://docs.docker.com/docker-for-mac/) / Docker for your OS of choice
* [Node](https://nodejs.org/en/)
* [Yarn](https://yarnpkg.com/lang/en/docs/install/)
* [Bower](https://bower.io/#install-bower)
* [Grunt](http://gruntjs.com/getting-started)
* [Ruby](https://www.ruby-lang.org/en/)
* [Sass](http://sass-lang.com/install)

### Building the app

### Building the app

* Clone repo `git clone git@github.com:UN-OCHA/hid_app2.git`
* In the app directory `cd hid_app2`
* Switch to the dev branch `git checkout dev`
* Install node modules with yarn `yarn install`
* Add the local url to your hosts file:
* macOS: `sudo vi /etc/hosts`, then add `127.0.0.1 app.hid.vm`
* Run the Grunt tasks `grunt`
(Note to set you local environment to use the staging api use `grunt --target="dev"`)
* Run the Grunt tasks `grunt`. Specify a `--target` to point to different HID API environments
* Example: `grunt --target=local` will use your local API. Edit `app/config/config.local.js` to configure each endpoint.


### Running the app

* `docker-compose up`
* visit [https://app.hid.vm](https://app.hid.vm) and accept the SSL certificate exception


## Deployment

See https://github.com/UN-OCHA/hid-stack/blob/master/README.md
Expand Down
2 changes: 1 addition & 1 deletion src/app/config/config.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
window.__env = window.__env || {};

// API url
window.__env.apiUrl = 'http://api.hid.vm/api/v2/';
window.__env.apiUrl = 'http://api.hid.vm:3000/api/v2/';

// Hrinfo url
window.__env.hrinfoUrl = 'https://www.humanitarianresponse.info/en/api/v1.0/';
Expand Down
4 changes: 2 additions & 2 deletions src/e2e-tests/environment.example.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
baseUrl: 'http://app.hid.vm/',
baseUrl: 'https://app.hid.vm/',

// These will be made available in browser.params inside tests
params: {
testUserName: '',
testUserName: '',
testUserEmail: '',
testUserPassword: '',
testUserId: '',
Expand Down

0 comments on commit 3e7f248

Please sign in to comment.