A modern web-based remake of the classic educational game "Number Munchers". Practice your math skills while avoiding Troggles in this nostalgic yet contemporary take on the beloved classic.
- 🧮 Multiple game modes (Multiples, Factors, Primes, Equations, Inequalities)
- 🎨 Modern, responsive design
- 🏆 Score tracking and leaderboards
- 🎵 Retro-inspired sound effects
- 📱 Cross-platform compatibility
- 🔒 User authentication with NextAuth.js
- 🎨 Beautiful UI components from shadcn/ui
- Framework: Next.js 15
- Frontend:
- React 19
- TailwindCSS 4
- shadcn/ui components
- Backend:
- tRPC 11 for type-safe APIs
- Drizzle ORM with PostgreSQL
- NextAuth.js for authentication
- Database: PostgreSQL
- Development:
- TypeScript
- ESLint
- Prettier
- pnpm (package manager)
- Node.js 18.0 or higher
- pnpm 8.0 or higher
- PostgreSQL 15 or higher
- Docker or Podman (for local database)
- Clone the repository:
git clone https://github.com/yourusername/number-munchers-clone.git
cd number-munchers-clone- Install dependencies:
pnpm install- Copy the example environment file:
cp .env.example .env- Update the
.envfile with your database and authentication credentials:
DATABASE_URL="postgresql://user:password@localhost:5432/dbname"
AUTH_SECRET="your-secret"
AUTH_DISCORD_ID="your-discord-id"
AUTH_DISCORD_SECRET="your-discord-secret"- Start the local database:
./start-database.sh- Initialize the database:
pnpm db:push- Start the development server:
pnpm devThe application will be available at http://localhost:3000
- Build the application:
pnpm build- Start the production server:
pnpm start- Install the Vercel CLI:
pnpm install -g vercel- Link your project:
vercel link- Deploy:
vercel deployAlternatively, you can connect your GitHub repository to Vercel for automatic deployments.
Run the test suite:
pnpm testAdditional documentation can be found in the /docs directory, including:
- Game Rules and Mechanics
- API Documentation
- Component Library
- Database Schema
Contributions are welcome! Please read our Contributing Guidelines for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
- Original Number Munchers game by MECC
- T3 Stack for the project foundation
- All our contributors and supporters
For support, please open an issue in the GitHub repository.