feat: add scripts for database inspection and migration

- Implemented multiple scripts to check and inspect meal plans, scraped data, and accommodations for Munich and Riga.
- Added a migration script to convert scraped data into the application's database format.
- Introduced new database service methods for querying and updating travel rates.
- Enhanced server configuration for serving static files in production.
- Updated PostCSS configuration for consistency.
This commit is contained in:
2026-01-13 11:32:49 -05:00
parent 4d915aa3ea
commit ae1f13d69e
21 changed files with 1012 additions and 265 deletions

12
scripts/checkMealPlan.js Normal file
View File

@@ -0,0 +1,12 @@
const Database = require("better-sqlite3");
const path = require("path");
const db = new Database(
path.join(__dirname, "..", "database", "travel_rates.db")
);
console.log(
db
.prepare(
"select city_name, meal_plan_type from travel_rates where lower(city_name)='munich'"
)
.get()
);