This repository contains a clone of the popular game "BombParty", developed using Next.js and TypeScript. Bomb Party is a fast-paced word game where players take turns to type words as quickly as possible to avoid the "bomb" exploding.
- Real-time multiplayer gameplay
- Word typing challenge
- Explosive fun!
If you want to try app by yourself, you will need:
- Node.js v10.13 or higher
Follow these steps to set up and run the Bomb Party clone on your local machine:
- Clone the repository and install all required dependencies:
git clone https://github.com/richardscull/YetAnotherBombPartyClone
cd Richards-Blog
npm install
- Create
.env.local
and setup it like this:
NEXTAUTH_SECRET= # Generate a secret with `openssl rand -base64 32`
NEXTAUTH_URL= # The URL of your app, enter "localhost:3000" if you are not planning to host to the web.
NEXT_PUBLIC_URL= # The URL of your app, enter "localhost:3000" if you are not planning to host to the web.
DISCORD_CLIENT_ID= # Your Discord client ID
DISCORD_CLIENT_SECRET= # Your Discord client secret
PUBLIC_LOBBY_DICTIONARY= # Choose a dictionary for the public lobby. Refer to `dictionaryType` from types.d.ts to see the available options. Defaults to `english`
- Build and start the server
npm run build
npm run start
⚠️ Don't forget to add the Redirect to http://your-url-site/api/auth/callback/discord
here.
- Open your web browser and visit
http://your-url-site
to play the game.
- Next.js
- TypeScript
- Socket.io for real-time communication
- Tailwind CSS