Skip to content

CuriouslyCory/number-munchers-clone

Repository files navigation

Number Munchers Clone 🎮

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.

🎯 Features

  • 🧮 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

🛠️ Tech Stack

📥 Installation

Prerequisites

  • Node.js 18.0 or higher
  • pnpm 8.0 or higher
  • PostgreSQL 15 or higher
  • Docker or Podman (for local database)

Local Development Setup

  1. Clone the repository:
git clone https://github.com/yourusername/number-munchers-clone.git
cd number-munchers-clone
  1. Install dependencies:
pnpm install
  1. Copy the example environment file:
cp .env.example .env
  1. Update the .env file 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"
  1. Start the local database:
./start-database.sh
  1. Initialize the database:
pnpm db:push
  1. Start the development server:
pnpm dev

The application will be available at http://localhost:3000

🚀 Deployment

General Deployment

  1. Build the application:
pnpm build
  1. Start the production server:
pnpm start

Vercel Deployment

  1. Install the Vercel CLI:
pnpm install -g vercel
  1. Link your project:
vercel link
  1. Deploy:
vercel deploy

Alternatively, you can connect your GitHub repository to Vercel for automatic deployments.

🧪 Testing

Run the test suite:

pnpm test

📖 Documentation

Additional documentation can be found in the /docs directory, including:

  • Game Rules and Mechanics
  • API Documentation
  • Component Library
  • Database Schema

🤝 Contributing

Contributions are welcome! Please read our Contributing Guidelines for details on our code of conduct and the process for submitting pull requests.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Original Number Munchers game by MECC
  • T3 Stack for the project foundation
  • All our contributors and supporters

📞 Support

For support, please open an issue in the GitHub repository.

About

A typescript clone of the classic dos game "Number Munchers"

Resources

Stars

Watchers

Forks

Contributors