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.
-
Install dependencies:
npm i
-
Start a development server:
npm run dev
Specified in ./.env.local.
- MONGODB_URI: MongoDB database URI.
- JWT_SECRET: JWT secret.
-
Start a production server:
npm start
-
Build the app for production usage:
npm run build
-
Lint the app:
npm run lint