Merge branch 'dev' into feature/pwa_setup_t13

This commit is contained in:
abpwrs committed 2020-02-17 17:12:38 -06:00
commit 485fdf2ed1
8 files changed
+1095 -2

No files matched your search

+19 -2
View File
@@ -1,2 +1,19 @@
# hdhs
Haiti Distributed Healthcare System
<p align="center">
<a href="https://www.chihaiti.org/"><img align="center" width="160" height="160" src="https://i.imgur.com/02fwcFL.png"></a>
<h2 align="center">Haiti Community Health Initiative Application</h2>
</p>
<p align="center">
A containerized progressive web application paired with patient data management tooling built to serve the <a href="https://www.chihaiti.org/">Haiti Community Health Initiative</a> in their mission to help form healthy and self-directed communities in Haiti.
</p>
---
## Getting Started
The application runs on docker, which can be installed [here](https://docs.docker.com/install/).
If you're a linux user, you'll also need to install [docker-compose](https://docs.docker.com/compose/install/) separately. Otherwise, it's included in the Mac and PC versions of "Docker Desktop"
- The PWA and accompanying database can be started by running the command `docker-compose up` from the root directory.
- `docker-compose down` will then stop the docker processes from running in the background.
- Once the images have been built and the processes started, the PWA can be seen at your localhost, at the port specified in [docker-compose.yml](https://github.com/Haiti-Distributed-Healthcare-System/hdhs/blob/dev/docker-compose.yml).
- More tips to troubleshoot docker are available [here](https://github.com/Haiti-Distributed-Healthcare-System/hdhs/wiki/Using-Docker).
+11
View File
@@ -0,0 +1,11 @@
version: '3'
services:
pwa:
build:
context: ./pwa
volumes:
- ./pwa/:/app
ports:
- "3000:3000"
container_name: haiti_pwa
+14
View File
@@ -0,0 +1,14 @@
### Networking tips
These should enable the pine to use Iowa Eduroam on boot with the detailed user creds
in wpa_wupplicant.conf
- The py script was used to generate for the first time the wpa config, but
that's now included in this repo, so I don't think it will ever need to be run again.
- `chsh -s /bin/bash john` to set a new users terminal to bash over just sh
- set/replace `/etc/wpa_supplicant/wpa_supplicant.conf` + and `/etc/network/interfaces`
### Controlling Led from bash:
- `sh -c "echo '0' > /sys/devices/platform/leds/leds/work-led/brightness"` - white led
- `sh -c "echo '0' > /sys/devices/platform/leds/leds/standby-led/brightness"` - red led
Further todos for configuration are listed [in this issue](https://github.com/Haiti-Distributed-Healthcare-System/hdhs/issues/20#issuecomment-586730519)
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
+15
View File
@@ -0,0 +1,15 @@
network={
ssid="eduroam"
key_mgmt=WPA-EAP
pairwise=CCMP
group=CCMP TKIP
eap=PEAP
ca_cert="/home/rock64/.cat_installer/ca.pem"
identity="{enter your hawk id}@uiowa.edu"
altsubject_match="DNS:net-auth-1.its.uiowa.edu"
phase2="auth=MSCHAPV2"
password="{enter your password here}"
anonymous_identity=""
priority=9
id_str="default"
}
+2
View File
@@ -0,0 +1,2 @@
node_modules
npm-debug.log*
+16
View File
@@ -0,0 +1,16 @@
FROM node:12.10.0
COPY package*.json ./data/
WORKDIR /data
RUN npm install
ENV PATH /data/node_modules/.bin:$PATH
COPY . /data/app
WORKDIR /data/app
EXPOSE 3000
CMD ["npm", "start"]