# Coding Standards

## Interface naming conventions

- Network<EntityName>: The naming convention for an interface that retrieves external data would be .
- <entityName>FromNetwork is used for the function that accepts Network<EntityName> and returns it in the local repo's format.

# Tips & Tricks for working on this repo

## Leveraging off API key endpoints

If you have an API key accessible, you can remove the `/app/{value}/` part of the platform endpoint. For example -

- /app/organisation_id/insurance/product-modules, will become:
- /insurance/product-modules

## Debugging

Check out how to add a `launch.json` file for debugging [here](https://code.visualstudio.com/docs/editor/debugging).

Example for debugging unit tests:

```bash
{
  "name": "Unit Tests",
  "type": "node",
  "request": "launch",
  "program": "${workspaceFolder}/node_modules/mocha/bin/mocha",
  "env": { "NODE_ENV": "test", "USE_MORGAN": "false" },
  "args": [
    "--require",
    "ts-node/register",
    "--no-timeouts",
    "${workspaceFolder}/*_/_.test.ts"
  ],
  "internalConsoleOptions": "openOnSessionStart"
}
```
