Skip to content

Commit 549199e

Browse files
authored
Merge pull request #6 from script-logic/feature/routes-impl
Feature/routes impl
2 parents 201170f + f14da41 commit 549199e

62 files changed

Lines changed: 4077 additions & 1986 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ celerybeat-schedule
1818
.cache/
1919
start_dev.ps1
2020
scripts
21+
test.db
2122

2223
# coverage
2324
.coverage

.env.example

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,20 @@ DATABASE__USER=postgres
44
DATABASE__PASSWORD=your_secure_password
55
DATABASE__DB=deribit_tracker
66

7-
DERIBIT_API__CLIENT_ID=your_client_id
8-
DERIBIT_API__CLIENT_SECRET=your_client_secret
97
DERIBIT_API__BASE_URL=https://www.deribit.com/api/v2
108

119
REDIS__HOST=redis
1210
REDIS__PORT=6379
1311
REDIS__DB=0
14-
REDIS__PASSWORD=your_secure_password_or_empty_for_local_dev
12+
REDIS__PASSWORD=
1513
REDIS__SSL=False
1614

17-
CELERY__WORKER_CONCURRENCY=2
15+
CELERY__WORKER_CONCURRENCY=1
1816
CELERY__BEAT_ENABLED=True
1917
CELERY__TASK_TRACK_STARTED=True
2018

2119
APPLICATION__DEBUG=False
2220
APPLICATION__API_V1_PREFIX=/api/v1
23-
APPLICATION__PROJECT_NAME=Deribit Price Tracker API
24-
APPLICATION__VERSION=0.3.0
2521

2622
CORS__ORIGINS=["http://localhost:8000","http://127.0.0.1:8000"]
2723

.github/workflows/ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,26 @@ jobs:
3232
cat > .env << 'EOF'
3333
DATABASE__HOST=localhost
3434
DATABASE__PORT=5433
35-
DATABASE__USER=test_user
36-
DATABASE__PASSWORD=test_password
37-
DATABASE__DB=test_db
35+
DATABASE__USER=postgres
36+
DATABASE__PASSWORD=your_secure_password
37+
DATABASE__DB=deribit_tracker
3838
39-
DERIBIT_API__CLIENT_ID=test_client_id
40-
DERIBIT_API__CLIENT_SECRET=test_client_secret
39+
DERIBIT_API__BASE_URL=https://www.deribit.com/api/v2
4140
42-
REDIS__HOST=localhost
41+
REDIS__HOST=redis
4342
REDIS__PORT=6379
4443
REDIS__DB=0
45-
REDIS__PASSWORD=your_secure_password_or_empty_for_local_dev
44+
REDIS__PASSWORD=
4645
REDIS__SSL=False
4746
4847
CELERY__WORKER_CONCURRENCY=2
4948
CELERY__BEAT_ENABLED=True
5049
CELERY__TASK_TRACK_STARTED=True
5150
52-
APPLICATION__DEBUG=false
51+
APPLICATION__DEBUG=False
5352
APPLICATION__API_V1_PREFIX=/api/v1
54-
APPLICATION__PROJECT_NAME=Deribit Price Tracker Test
55-
APPLICATION__VERSION=1.0.0
5653
57-
CORS__ORIGINS=["http://localhost:8000"]
54+
CORS__ORIGINS=["http://localhost:8000","http://127.0.0.1:8000"]
5855
5956
APP_PORT=8000
6057
EOF

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ coverage.xml
2929
pytest.xml
3030
test-results/
3131
*.log
32+
test.db
3233

3334
# Python
3435
__pycache__/

.gitlab-ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,26 @@ before_script:
2323
@'
2424
DATABASE__HOST=localhost
2525
DATABASE__PORT=5433
26-
DATABASE__USER=test_user
27-
DATABASE__PASSWORD=test_password
28-
DATABASE__DB=test_db
26+
DATABASE__USER=postgres
27+
DATABASE__PASSWORD=your_secure_password
28+
DATABASE__DB=deribit_tracker
2929
30-
DERIBIT_API__CLIENT_ID=test_client_id
31-
DERIBIT_API__CLIENT_SECRET=test_client_secret
30+
DERIBIT_API__BASE_URL=https://www.deribit.com/api/v2
3231
33-
REDIS__HOST=localhost
32+
REDIS__HOST=redis
3433
REDIS__PORT=6379
3534
REDIS__DB=0
36-
REDIS__PASSWORD=your_secure_password_or_empty_for_local_dev
35+
REDIS__PASSWORD=
3736
REDIS__SSL=False
3837
3938
CELERY__WORKER_CONCURRENCY=2
4039
CELERY__BEAT_ENABLED=True
4140
CELERY__TASK_TRACK_STARTED=True
4241
43-
APPLICATION__DEBUG=false
42+
APPLICATION__DEBUG=False
4443
APPLICATION__API_V1_PREFIX=/api/v1
45-
APPLICATION__PROJECT_NAME=Deribit Price Tracker Test
46-
APPLICATION__VERSION=1.0.0
4744
48-
CORS__ORIGINS=["http://localhost:8000"]
45+
CORS__ORIGINS=["http://localhost:8000","http://127.0.0.1:8000"]
4946
5047
APP_PORT=8000
5148
'@ | Out-File -FilePath .env -Encoding UTF8

.secrets.baseline

Lines changed: 4 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
{
128128
"type": "Secret Keyword",
129129
"filename": ".github\\workflows\\ci.yml",
130-
"hashed_secret": "df842c49d8d3277a0170ffac5782a3cbe61b1feb",
130+
"hashed_secret": "702f38878ff96df04408e2d68d2afc48c2c59717",
131131
"is_verified": false,
132132
"line_number": 31
133133
},
@@ -136,7 +136,7 @@
136136
"filename": ".github\\workflows\\ci.yml",
137137
"hashed_secret": "dc5f72fcc64e44ece1aa8dfab21ddfce0fc8772b",
138138
"is_verified": false,
139-
"line_number": 106
139+
"line_number": 103
140140
}
141141
],
142142
"alembic.ini": [
@@ -163,67 +163,9 @@
163163
"filename": "app\\core\\config.py",
164164
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
165165
"is_verified": false,
166-
"line_number": 43
167-
}
168-
],
169-
"tests\\test_config.py": [
170-
{
171-
"type": "Secret Keyword",
172-
"filename": "tests\\test_config.py",
173-
"hashed_secret": "e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4",
174-
"is_verified": false,
175-
"line_number": 32
176-
},
177-
{
178-
"type": "Secret Keyword",
179-
"filename": "tests\\test_config.py",
180-
"hashed_secret": "c94d65f02a652d11c2e5c2e1ccf38dce5a076e1e",
181-
"is_verified": false,
182-
"line_number": 73
183-
},
184-
{
185-
"type": "Basic Auth Credentials",
186-
"filename": "tests\\test_config.py",
187-
"hashed_secret": "c94d65f02a652d11c2e5c2e1ccf38dce5a076e1e",
188-
"is_verified": false,
189-
"line_number": 78
190-
},
191-
{
192-
"type": "Secret Keyword",
193-
"filename": "tests\\test_config.py",
194-
"hashed_secret": "1adfce9fa4bc6b1cbdf95ac2dc6180175da7558b",
195-
"is_verified": false,
196-
"line_number": 89
197-
},
198-
{
199-
"type": "Secret Keyword",
200-
"filename": "tests\\test_config.py",
201-
"hashed_secret": "72cb70dbbafe97e5ea13ad88acd65d08389439b0",
202-
"is_verified": false,
203-
"line_number": 121
204-
},
205-
{
206-
"type": "Secret Keyword",
207-
"filename": "tests\\test_config.py",
208-
"hashed_secret": "ee27c133da056b1013f88c712f92460bc7b3c90a",
209-
"is_verified": false,
210-
"line_number": 129
211-
},
212-
{
213-
"type": "Secret Keyword",
214-
"filename": "tests\\test_config.py",
215-
"hashed_secret": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
216-
"is_verified": false,
217-
"line_number": 240
218-
},
219-
{
220-
"type": "Secret Keyword",
221-
"filename": "tests\\test_config.py",
222-
"hashed_secret": "fca268ae2442d5cabc3e12d87b349adf8bf7d76c",
223-
"is_verified": false,
224-
"line_number": 316
166+
"line_number": 47
225167
}
226168
]
227169
},
228-
"generated_at": "2026-01-26T20:19:50Z"
170+
"generated_at": "2026-01-29T14:55:03Z"
229171
}

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ COPY . .
1818

1919
RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
2020
USER appuser
21-
22-
CMD ["poetry", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)