feat: add async tour system

Players can create tours with selected courses/layouts and a date range.
Others join via a 6-character tour code, play the courses, and report
their total strokes. Live leaderboard with points and +/- par display.

Includes: database schema, model, service, routes, views, and styling.
This commit is contained in:
Samuel Enocsson
2026-03-19 22:47:54 +01:00
parent d567c4bca9
commit 2ccb018bdf
14 changed files with 2489 additions and 0 deletions
+2
View File
@@ -4,6 +4,7 @@ const path = require('path');
const { initializeDatabase, checkAndPopulateDatabase } = require('./src/db');
const playerRoutes = require('./src/routes/players');
const courseRoutes = require('./src/routes/courses');
const tourRoutes = require('./src/routes/tours');
const pageRoutes = require('./src/routes/pages');
const logger = require('./src/logger');
@@ -17,6 +18,7 @@ app.use(express.json());
app.use(playerRoutes);
app.use(courseRoutes);
app.use(tourRoutes);
app.use(pageRoutes);
initializeDatabase().then(async () => {