A competitive, real-time math problem-solving game built with React and serverless architecture. Players can join a game, solve dynamically generated math problems, and compete for the highest score. The game utilizes serverless functions to manage game sessions and high scores, employs JWT authentication for secure user identification, and features a responsive design for an engaging user experience.
- Real-Time Gameplay: Players can join ongoing games and compete in real-time to solve math problems as quickly and accurately as possible.
- High Score Leaderboard: Players can view the leaderboard to see how they rank against others, with high scores stored and managed using serverless functions and Airtable.
- Authentication: Secure user authentication is provided by Auth0, ensuring that only registered players can access the game and save their scores.
- Responsive Design: The game is styled using styled-components, providing a consistent and enjoyable experience across various devices.
- Frontend: React, styled-components
- Backend: Netlify Functions, Airtable
- Authentication: Auth0
In this project, I've developed a real-time math problem-solving game using React for the frontend and serverless architecture for the backend. The game challenges players to solve math problems accurately and quickly, with their scores being saved and displayed on a global leaderboard. Leveraging serverless functions hosted on Netlify allows the game to handle multiple concurrent players without a traditional server setup. Additionally, the integration of Auth0 for authentication ensures that players' scores are securely associated with their accounts.
- Node.js
- npm or yarn
-
Clone the repository:
git clone https://github.com/LouisC00/Serverless-React-Maths-Game.git
-
Navigate to the project directory:
cd Serverless-React-Maths-Game
-
Install dependencies:
npm install
or
yarn install
-
Start the development server:
netlify dev
This project is deployed on Netlify. To deploy your own instance, follow these steps:
- Push your code to a GitHub repository.
- Connect your GitHub repository to Netlify.
- Set up build commands and publish directory in Netlify.
- Deploy your site.
Contributions are welcome! If you have any ideas or improvements, feel free to fork the repository and submit a pull request.
License
This project is licensed under the MIT License