Skip to content

Commit

Permalink
feat: ✨ create dexcom infrastructure service (#5)
Browse files Browse the repository at this point in the history
* feat: ✨ add dexcom auth

* feat: ✨ add dexcom routes

* feat: ✨ add common command handler
  • Loading branch information
BartekCK committed Jan 23, 2023
1 parent f3887cf commit 68e0db7
Show file tree
Hide file tree
Showing 45 changed files with 1,753 additions and 47 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
DEXCOM_USERNAME=exampleUsername
DEXCOM_PASSWORD=examplePassword
DEXCOM_APPLICATION_ID=d89443d2-327c-4a6f-89e5-496bbb0317db
DEXCOM_USER_LOCATION=EU

DATABASE_HOST=exampleHost
DATABASE_PORT=8080
Expand Down
2 changes: 2 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
DEXCOM_USERNAME=test
DEXCOM_PASSWORD=test
DEXCOM_APPLICATION_ID=d89443d2-327c-4a6f-89e5-496bbb0317db
DEXCOM_USER_LOCATION=EU

DATABASE_HOST=127.0.0.1
DATABASE_PORT=5432
Expand Down
27 changes: 6 additions & 21 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,17 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": [
"@typescript-eslint"
],
"plugins": ["@typescript-eslint"],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"]
},
"ignorePatterns": ["dist", "node_modules"]
}
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ jobs:
- name: Run test
run: npm test

- name: Upload coverage reports
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
build:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
dist/
.idea
.env
.coverage
coverage
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


### TODO:
1. Exclude dir migrations and tests from production build
1. Add contract tests


### Migrations
Expand Down
3 changes: 3 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import type { Config } from 'jest';
const config: Config = {
verbose: true,
preset: 'ts-jest',
testPathIgnorePatterns: ['/node_modules/'],
testMatch: ['**/*.test.ts'],
collectCoverage: true,
coverageDirectory: '.coverage',
};

export default config;
Loading

0 comments on commit 68e0db7

Please sign in to comment.