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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user