/minesweeper

Minesweeper game with leaderboard.

Primary LanguageTypeScriptMIT LicenseMIT

Minesweeper

Minesweeper game with leaderboard built with Next.js and MongoDB. TypeScript is enabled globally. SCSS is used for styling, Redux for state management, Passport and JWT for user authentication, Bcrypt for password hashing, and Mongoose for database manipulation.

Getting started

  1. Install dependencies:

    npm i
  2. Start a development server:

    npm run dev

Environment variables

Specified in ./.env.local.

  • MONGODB_URI: MongoDB database URI.
  • JWT_SECRET: JWT secret.

Other commands

  • Start a production server:

    npm start
  • Build the app for production usage:

    npm run build
  • Lint the app:

    npm run lint