To run the Harpocrates stack, you will need:
- docker
- docker-compose
git clone https://gitlab.com/harpocrates-app/harpocrates.git
cd harpocrates
docker-compose up -d
A Docker image repository with prebuilt docker images is also available here
Documentation for Harpocrates services is available here: https://harpocrates-app.gitlab.io/harpocrates
The development Logbook of Harpocrates can be found here.
To run the stack without docker you will need to have:
- Python 3.7.x
- NodeJS 13.x
- MongoDB 4.2.x
git clone https://gitlab.com/harpocrates-app/harpocrates.git
cd harpocrates
cat hosts.txt >> /etc/hosts
cd api
pip install --user pipenv
pipenv install
pipenv shell
flask run --port 80
cd frontend
npm install
npm run dev
you can use the one define in the docker-compose :
docker-compose up -d mongo
The js-api-client
service is a Node package auto-generated using the openapi-generator from the specification defined in api-sepecification/api-specification/openapi.yml
.
To update the JS client after having modified the specification use the following command at the repo's root after having installed the OpenAPI code generator:
make api-client
The Flask API server code is also derived from the OpenAPI generator code, however, some files are protected from "auto generation overwrite" this list is in api/.openapi-generator-ignore
. As such, some manual modification of these files might be required after code generation which is run from the project root with the following command after having installed the OpenAPI code generator:
make api-server