Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/st3v3nmw/elixir-backend
Backend for a distributed electronic health records system
https://github.com/st3v3nmw/elixir-backend
ehr electronic-health-records electronic-medical-records emr personal-health-record single-sign-on
Last synced: 23 days ago
JSON representation
Backend for a distributed electronic health records system
- Host: GitHub
- URL: https://github.com/st3v3nmw/elixir-backend
- Owner: st3v3nmw
- License: mit
- Created: 2021-10-16T10:42:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-15T09:05:15.000Z (about 1 year ago)
- Last Synced: 2024-10-15T07:32:09.251Z (2 months ago)
- Topics: ehr, electronic-health-records, electronic-medical-records, emr, personal-health-record, single-sign-on
- Language: Python
- Homepage:
- Size: 5.28 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elixir Backend
The frontend's [here](https://github.com/st3v3nmw/elixir-frontend).
## Setup
1. Fresh install?, run `scripts/setup.sh` to install the required packages like Docker.
2. Deploy/build docker container
3. Run `python manage.py migrate`.
4. `python manage.py runscript populate_coding_tables`
5. Get into `web` container,
6. In the container, run the following commands to generate JWT keys:
1. `ssh-keygen -t rsa -P "" -b 4096 -m PEM -f jwtRS384.key`
2. `ssh-keygen -e -m PEM -f jwtRS384.key > jwtRS384.key.pub`## Deploying to Remote
1. Setup passwordless SSH on remote.
2. On the remote machine, run the `scripts/setup.sh` script (if 1st deploy).
3. Create context for remote: `docker context create remote --docker "host=ssh://user@ip"`
4. Change docker context: `docker context use remote`
5. Deploy: `COMPOSE_DOCKER_CLI_BUILD=0 docker-compose up -d --build`
6. Confirm that containers are up & running: `docker ps` (`docker-compose logs -f` to check logs)