Commit Graph

53 Commits

Author SHA1 Message Date
f8b76c757c Initial logging improvements, switch run.sh to direct module 'serve' cmd 2024-11-01 15:47:28 -05:00
902eb74deb Add 'structlog' module 2024-11-01 15:47:28 -05:00
5a288cf87c Only import CORSMiddleware in development mode 2024-11-01 15:47:28 -05:00
cb76965a43 Add run.sh warning note to README 2024-11-01 15:47:28 -05:00
af91adeca3 Overhaul README.md with more instructions (env vars, railway CLI, usage, asdf install) 2024-11-01 15:47:28 -05:00
5390fb57a7 Overhaul run.sh scripts
- Default environment variables through this, instead of .env
- Added some basic checks to ensure developers don't stub their toe
- Use `railway link`, injecting environment variables without insecure dotenv files
2024-11-01 15:47:28 -05:00
f034b41da1 Add .env.example in proper places 2024-11-01 15:47:28 -05:00
109e09df50 Add note on purpose of poetry version in Nixpacks config 2024-11-01 15:47:28 -05:00
b962966080 Move .tool-versions to project root 2024-11-01 15:47:22 -05:00
5360d24543 python analysis extraPath (import resolution) sprintOne v0.1.0 2024-10-24 13:01:13 -05:00
1380ae5497 only hide ip if it's not the same as user_ip 2024-10-24 04:38:37 -05:00
5815c2b6d1 frontend: error handling 2024-10-24 04:26:00 -05:00
bc0ef7728f reformat, add docs 2024-10-24 04:23:35 -05:00
c25e335fc9 Add psycopg2 (!!!) 2024-10-24 04:23:29 -05:00
6f26df1939 Update frontend to use new IP listing feature 2024-10-24 04:18:16 -05:00
4267d40611 development mode checks 2024-10-24 04:18:08 -05:00
c0d135d8a8 revamp ip address demo, buffered background IP submit with upsert, parameterized SQL with psycopg2 cursor & execute_values 2024-10-24 04:04:09 -05:00
25177a3346 get_ip helper method, hide_ip helper, docs 2024-10-24 04:03:28 -05:00
77d8586772 add human-readable, apscheduler, bpython (dev) 2024-10-24 04:03:09 -05:00
d364239523 responses.py (pydantic models) 2024-10-24 04:02:30 -05:00
2ae2b6af52 reformat: migrate.py 2024-10-24 04:02:18 -05:00
98ef2d2aa6 Enable reloader for hypercorn (does nothing?), add repl command with bpython 2024-10-24 04:01:39 -05:00
a3d5bb4592 Fix improper column name scheme 2024-10-24 04:01:18 -05:00
cd959ffa48 migration: ipaddress_count 2024-10-23 18:34:35 -05:00
110626048b Improve migration script with prompts, warnings, finish TODOs 2024-10-23 18:34:24 -05:00
9d116442a4 Update initial migration to proper 2024-10-23 17:56:34 -05:00
93b56cc7cf Improve migration handling, base model exclusion, initial migration creation/application 2024-10-23 17:56:19 -05:00
7b7ac7c29e Add first migration, initial 2024-10-23 17:28:41 -05:00
d32b11987d Setup models, setup customized migration flow concept 2024-10-23 17:28:36 -05:00
f0b1e88305 Update hypercorn invocations for app.py 2024-10-23 17:27:47 -05:00
945256e682 peewee, peewee-migrate, typeshed, cache modules 2024-10-23 17:27:33 -05:00
e1f414f2e9 Setup module entrypoint, main.py becomes app.py, add FastAPI Cache with InMemory backend, /api/migration route 2024-10-23 17:27:03 -05:00
e637d47efa Add health check path for backend 2024-10-16 01:29:47 -05:00
c7751097b2 document frontend setup, backend startup, TODOs 2024-10-16 01:28:20 -05:00
30d9d96838 limit width, ensure body is max min height 2024-10-16 01:16:38 -05:00
54268297df fix browser URL, prod is relative URL 2024-10-16 01:14:20 -05:00
d5b7f066b3 Fixup backend URL target on frontend, devmode fast refresh 2024-10-16 01:07:27 -05:00
862a4fbc45 Reformat source files 2024-10-16 01:01:57 -05:00
59d0440946 Fix railway startCommand for backend 2024-10-16 00:54:27 -05:00
3a3c72ceb0 Tune nixpacks poetry version, stick to 1.8.4 2024-10-16 00:50:14 -05:00
4efba39103 move hypercorn startCommand to backend 2024-10-16 00:32:07 -05:00
82b03f6211 .env loading in backend 2024-10-16 00:31:45 -05:00
3b4dc2a7c2 Configure nixpacks to use Caddy 2024-10-16 00:31:35 -05:00
a72e2123bf add frontend work 2024-10-15 23:52:21 -05:00
d7aa949cad add CORS, return message, fallback IP to request.client.host 2024-10-15 23:52:16 -05:00
7ff9d12143 add backend run.sh script 2024-10-15 23:51:51 -05:00
7038fb2c3e Add DATABASE_URL env var, with .env.example 2024-10-15 23:51:42 -05:00
dd8f7a7014 Setup frontend 2024-10-15 23:51:33 -05:00
5b28c69163 Separate into /backend and /frontend folders 2024-10-15 23:27:31 -05:00
fd5a5125d3 begin documenting setup process 2024-10-15 23:05:22 -05:00