By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
- Contributing Guidelines
- Events
- JWT
- Onboarding Documentation
- Project Design Reference Material
- Running the project
- Test Cases
- VS Code Settings
Use the website https://jwt.io/ to validate your jwt. The secret you need to use will be defined as api_token in config file(Remember this will differ depending on the environment)
{
"iss": "apig",
"sub": "5799b72e8aaf4a18b74c06a6",
"authorizarion": "Bearer 93f45dc6374035c97590d48bdbaa140be67deba5",
"context": {
"type": "Agency",
"id": "59f86a039d4a5a29a6a0dff5"
},
"source_url": "/v1/agency/59f86a039d4a5a29a6a0dff5/candidate/59f85605e5cab96197820f1f/equality",
"source_method": "PUT",
"request_id": "03d3ed15-3184-4722-b258-c189ba5a3123",
"iat": 1511446361
}
This project has a couple of moving parts. This is a typescript project, config can be found in the tsconfig.json
file. You will need to execute npm run build-ts
to transpile to JS code, which is located in the outDir
.
- You can use
nodemon
during the development phase, there is currently a default config filenodemon.json
in the repo which only runs the API portion of the application.
npm run migrate
Before starting any of the applications entry points you will need to run the database migrations.
npm run start
npm run start-domain-event-consumer
npm run start-streaming-application-core
These are settings that are applied to the workspace, they line-up with our linting rules. These are not committed as each developer may have additional workspace configuration specific to them, IE Custom Colors per project.
These will most likely be a subset of your .vscode/settings.json
file
Anyone is welcome to expand on these settings
{
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"typescript.preferences.importModuleSpecifier": "relative"
}