Skip to content

Commit 0ea9300

Browse files
authored
Merge pull request #430 from UN-OCHA/HID-2411
[HID-2411] Improve documentation for local setup
2 parents cc45967 + 02e2aad commit 0ea9300

File tree

2 files changed

+12
-33
lines changed

2 files changed

+12
-33
lines changed

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
# Humanitarian ID
22

3-
[![Build Status](https://travis-ci.org/UN-OCHA/hid-api.svg?branch=main)](https://travis-ci.org/UN-OCHA/hid-api)
3+
[![Status](https://github.com/UN-OCHA/hid-api/actions/workflows/checks.yml/badge.svg)](https://github.com/UN-OCHA/hid-api/actions/workflows/checks.yml)
44
[![Create image](https://github.com/UN-OCHA/hid-api/actions/workflows/build.yml/badge.svg)](https://github.com/UN-OCHA/hid-api/actions/workflows/build.yml)
55

6-
Humanitarian ID is built with:
6+
## Installation / Setup
7+
8+
We have a separate [`hid-stack` repo][hid-stack-install] with instructions for running HID locally. Please follow those instructions. You can't run HID locally without the stack.
9+
10+
[hid-stack-install]: https://github.com/UN-OCHA/hid-stack/#installation--first-time-setup
11+
12+
## About the application
13+
14+
Humanitarian ID is an OAuth 2.0 and OpenID Connect server. Most end users will only briefly see HID as they log in, approve a website, and get redirected. It is built with:
715

816
- mongoDB as its database backend
917
- node.js + hapi as the server
1018

11-
HID acts as an OAuth 2.0 and OpenID Connect server.
12-
13-
The API is documented here: https://api.humanitarian.id/docs/
19+
If you want to use HID within an application that requires a REST API, those docs are here: https://api.humanitarian.id/docs/
1420

1521
## Models
1622

@@ -50,6 +56,7 @@ Services are helper methods provided to the controllers.
5056

5157
Configuration files are stored in `/config`.
5258

59+
* env/index.js: config for different environments (local, testing, prod)
5360
* log.js: configure logging
5461
* main.js: configure trailpacks and paths
5562
* routes.js: configure routes

docker-compose.example.yml

-28
This file was deleted.

0 commit comments

Comments
 (0)