The "Jolocom Example Service" is a reference application created to show how to develop applications using 'Jolocom SDK' along with 'Express framework' or even be the starting point for your concrete solution.
ℹ️ This application uses "API First" approach by defining contract with help of "OpenAPI Specification 3.0" located in 'openapi.yaml'.
- "node": ">=10"
To build your application on top of "Jolocom Example Service" you need just follow 5 simple steps:
- Fork it (rename if required).
- Clone forked repository.
- Install dependencies.
- Configure application.
- Run it.
Npm:
npm install
Yarn:
yarn
First of all you need to create .env
file with required environment variables
(.env.dist
is an example of .env
).
For simplification of creation default .env
file, was added command under the "scripts" definition:
Npm:
npm run dotenv-init
Yarn:
yarn run dotenv-init
Npm:
npm run start
Yarn:
yarn run start
Or run in debug mode (after run in debug mode you can attach debugger):
Npm:
npm run debug
Yarn:
yarn run debug
🎉 At this point you have configured and working application with set of predefined endpoints which are covering most of available interactions supported by the 'Jolocom SDK'.
To see list of all available endpoints you can use 'Swagger UI' (sandbox) which can be reached on http://localhost:9000/docs (with default server configuration).
Here some structure representation in 'UML':