Guess The Country is a web-based game where players try to guess the names of countries based on hints provided. The game utilizes socket.io for real-time communication between players.
The project is hosted on Vercel at https://guessthecountry.vercel.app/.
Data from https://restcountries.com/
- Multiplayer gameplay using socket.io
- Room System
- Global and Room specific Real-time chat
- Single-player mode
- React for the frontend
- Node.js and Express.js for the backend
- Socket.io for real-time communication
- Mongodb for the database
- Tailwind CSS for styling
-
Clone the repository:
git clone https://github.com/Mohamed-Kacem-Dev/guess-the-country-multiplayer.git
-
Install dependencies for both frontend and backend:
cd guess-the-country-multiplayer/frontend npm install cd ../backend npm install
-
Install dependencies for both frontend and backend:
# Start frontend server cd ../frontend npm start # Start backend server cd ../backend node index.js
-
create a .env file in the frontend directory
REACT_APP_SOCKET_URL=<PUT THE BACKEND LINK HERE>
-
Open http://localhost:3000 in your web browser.
For any inquiries or questions regarding this project, feel free to contact me at ham.kacem15@gmail.com.