A simple web application for tracking wagers. The project combines a Node.js/Express backend and static HTML pages for user interaction.
- User registration and authentication
- Record, update, and review bets
- REST API built with Express and MongoDB via Mongoose
- Install dependencies:
npm install
- Start the API server:
The server expects environment variables such as your MongoDB connection string.
npm start
Set the following variables to enable optional features:
MONGODB_URI: MongoDB connection string (required).AI_MODEL: Override default OpenAI model (optional; defaultgpt-4o-mini).OPENAI_API_KEY: If set, the server will use this key for all AI Analyst requests. When present, users do not need to provide personal keys and the Settings page disables personal key entry.
api/– entry point for the Express applicationsrc/– application logic, routes, and database configuration- Static HTML files (
index.html,login.html, etc.) serve as the frontend
Feel free to open issues or submit pull requests to improve the project.