Source content for pryv.github.io (API reference, recommendations, guides, etc.)
Prerequisites: Node.js 16, just
Then:
just setup
to install node modules and setupdist/
as well as repository copies ofservice-core
andtest-results
(seescripts/setup
for details)just build
for the initial compilation intodist/
Running just
with no argument displays the available commands (defined in justfile
).
just build
generates the website fromsrc/
intodist/
just watch
watchessrc/
and rebuilds on changesjust clean
cleans updist/
(not done by build/watch)just publish
builds and publishes the websitejust serve
to run the site locally on https://l.rec.la:4443/
Note: data types are sourced from repo pryv/data-types on just retrieve-types
and just publish
into src/event-types/_source
.
Note: test results are sourced from repo pryv/dev-test-results on just retrieve-tests
and just publish
into dependencies/test-results
.
The sub-package in open-api/
implements the generation of OpenAPI definitions from the source reference documentation.
just open-api
- Import
open-api-format/api.yaml
(withImport as an API
andGenerate a Postman Collection
checked) - Set the environment variables of pryv.me :
username
,token
andpassword
correspond to the variables created for your Pryv.me account (in our example,username
istestuser
, thetoken
isck3iwe3o700yf1ld3hh86rz3m
withpassword
beingtestuser
), and thebaseUrl
variable should be set ashttps://{{token}}@{{username}}.pryv.me
. - Enjoy