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 installYarn:
yarnFirst 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-initYarn:
yarn run dotenv-initNpm:
npm run startYarn:
yarn run startOr run in debug mode (after run in debug mode you can attach debugger):
Npm:
npm run debugYarn:
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':