Skip to content

Commit 2882f77

Browse files
committed
first commit
0 parents  commit 2882f77

199 files changed

Lines changed: 5486 additions & 0 deletions

File tree

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: ci
2+
on:
3+
push: { branches: [ main ] }
4+
pull_request:
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
services:
9+
postgres:
10+
image: postgis/postgis:16-3.4
11+
env:
12+
POSTGRES_DB: allocar
13+
POSTGRES_USER: allocar
14+
POSTGRES_PASSWORD: allocar
15+
ports: ['5432:5432']
16+
options: >-
17+
--health-cmd pg_isready
18+
--health-interval 10s
19+
--health-timeout 5s
20+
--health-retries 5
21+
redis:
22+
image: redis:7
23+
ports: ['6379:6379']
24+
env:
25+
FLASK_ENV: test
26+
SECRET_KEY: test
27+
JWT_SECRET_KEY: test
28+
DB_HOST: localhost
29+
DB_PORT: 5432
30+
DB_NAME: allocar
31+
DB_USER: allocar
32+
DB_PASSWORD: allocar
33+
SQLALCHEMY_DATABASE_URI: postgresql+psycopg2://allocar:allocar@localhost:5432/allocar
34+
REDIS_URL: redis://localhost:6379/0
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-python@v5
38+
with: { python-version: '3.12' }
39+
- run: pip install -r requirements.txt
40+
- run: pip install pytest
41+
- run: |
42+
export FLASK_APP=app.py
43+
flask db upgrade
44+
- run: pytest -q

.gitignore

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
### JetBrains template
2+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
3+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
4+
5+
# User-specific stuff
6+
.idea/**/workspace.xml
7+
.idea/**/tasks.xml
8+
.idea/**/usage.statistics.xml
9+
.idea/**/dictionaries
10+
.idea/**/shelf
11+
.venv
12+
.env
13+
allocar.db
14+
.env.local
15+
my.env.production
16+
.env.stagging
17+
# Generated files
18+
.idea/**/contentModel.xml
19+
20+
# Sensitive or high-churn files
21+
.idea/**/dataSources/
22+
.idea/**/dataSources.ids
23+
.idea/**/dataSources.local.xml
24+
.idea/**/sqlDataSources.xml
25+
.idea/**/dynamic.xml
26+
.idea/**/uiDesigner.xml
27+
.idea/**/dbnavigator.xml
28+
29+
# Gradle
30+
.idea/**/gradle.xml
31+
.idea/**/libraries
32+
33+
# Gradle and Maven with auto-import
34+
# When using Gradle or Maven with auto-import, you should exclude module files,
35+
# since they will be recreated, and may cause churn. Uncomment if using
36+
# auto-import.
37+
# .idea/artifacts
38+
# .idea/compiler.xml
39+
# .idea/jarRepositories.xml
40+
# .idea/modules.xml
41+
# .idea/*.iml
42+
# .idea/modules
43+
# *.iml
44+
# *.ipr
45+
46+
# CMake
47+
cmake-build-*/
48+
49+
# Mongo Explorer plugin
50+
.idea/**/mongoSettings.xml
51+
52+
# File-based project format
53+
*.iws
54+
55+
# IntelliJ
56+
out/
57+
58+
# mpeltonen/sbt-idea plugin
59+
.idea_modules/
60+
61+
# JIRA plugin
62+
atlassian-ide-plugin.xml
63+
64+
# Cursive Clojure plugin
65+
.idea/replstate.xml
66+
67+
# Crashlytics plugin (for Android Studio and IntelliJ)
68+
com_crashlytics_export_strings.xml
69+
crashlytics.properties
70+
crashlytics-build.properties
71+
fabric.properties
72+
73+
# Editor-based Rest Client
74+
.idea/httpRequests
75+
76+
# Android studio 3.1+ serialized cache file
77+
.idea/caches/build_file_checksums.ser
78+
79+
### Example user template template
80+
### Example user template
81+
82+
# IntelliJ project files
83+
.idea
84+
*.iml
85+
out
86+
gen
87+
### macOS template
88+
# General
89+
.DS_Store
90+
.AppleDouble
91+
.LSOverride
92+
93+
# Icon must end with two \r
94+
Icon
95+
96+
# Thumbnails
97+
._*
98+
99+
# Files that might appear in the root of a volume
100+
.DocumentRevisions-V100
101+
.fseventsd
102+
.Spotlight-V100
103+
.TemporaryItems
104+
.Trashes
105+
.VolumeIcon.icns
106+
.com.apple.timemachine.donotpresent
107+
108+
# Directories potentially created on remote AFP share
109+
.AppleDB
110+
.AppleDesktop
111+
Network Trash Folder
112+
Temporary Items
113+
.apdisk
114+
115+
### Python template
116+
# Byte-compiled / optimized / DLL files
117+
__pycache__/
118+
*.py[cod]
119+
*$py.class
120+
121+
# C extensions
122+
*.so
123+
124+
# Distribution / packaging
125+
.Python
126+
build/
127+
develop-eggs/
128+
dist/
129+
downloads/
130+
eggs/
131+
.eggs/
132+
lib/
133+
lib64/
134+
parts/
135+
sdist/
136+
var/
137+
wheels/
138+
share/python-wheels/
139+
*.egg-info/
140+
.installed.cfg
141+
*.egg
142+
MANIFEST
143+
144+
# PyInstaller
145+
# Usually these files are written by a python script from a template
146+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
147+
*.manifest
148+
*.spec
149+
150+
# Installer logs
151+
pip-log.txt
152+
pip-delete-this-directory.txt
153+
154+
# Unit test / coverage reports
155+
htmlcov/
156+
.tox/
157+
.nox/
158+
.coverage
159+
.coverage.*
160+
.cache
161+
nosetests.xml
162+
coverage.xml
163+
*.cover
164+
*.py,cover
165+
.hypothesis/
166+
.pytest_cache/
167+
cover/
168+
169+
# Translations
170+
*.mo
171+
*.pot
172+
173+
# Django stuff:
174+
*.log
175+
local_settings.py
176+
db.sqlite3
177+
db.sqlite3-journal
178+
179+
# Flask stuff:
180+
instance/
181+
.webassets-cache
182+
183+
# Scrapy stuff:
184+
.scrapy
185+
186+
# Sphinx documentation
187+
docs/_build/
188+
189+
# PyBuilder
190+
.pybuilder/
191+
target/
192+
193+
# Jupyter Notebook
194+
.ipynb_checkpoints
195+
196+
# IPython
197+
profile_default/
198+
ipython_config.py
199+
200+
# pyenv
201+
# For a library or package, you might want to ignore these files since the code is
202+
# intended to run in multiple environments; otherwise, check them in:
203+
# .python-version
204+
205+
# pipenv
206+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
207+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
208+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
209+
# install all needed dependencies.
210+
#Pipfile.lock
211+
212+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
213+
__pypackages__/
214+
215+
# Celery stuff
216+
celerybeat-schedule
217+
celerybeat.pid
218+
219+
# SageMath parsed files
220+
*.sage.py
221+
222+
# Environments
223+
.env
224+
.venv
225+
env/
226+
venv/
227+
ENV/
228+
env.bak/
229+
venv.bak/
230+
231+
# Spyder project settings
232+
.spyderproject
233+
.spyproject
234+
235+
# Rope project settings
236+
.ropeproject
237+
238+
# mkdocs documentation
239+
/site
240+
241+
# mypy
242+
.mypy_cache/
243+
.dmypy.json
244+
dmypy.json
245+
246+
# Pyre type checker
247+
.pyre/
248+
249+
# pytype static type analyzer
250+
.pytype/
251+
252+
# Cython debug symbols
253+
cython_debug/
254+

0 commit comments

Comments
 (0)