Almost Timer is an interactive, fast-paced game that tests your reflexes and reaction times! Players compete on leaderboards by scoring points based on how quickly they can react to timed challenges. With real-time updates, fun animations, and a competitive edge, Timer Gamer keeps you engaged as you race against the clock! 🎮
In Timer Gamer, players enter their names to compete in various timed challenges. The game generates random numbers, changing quickly, and players must respond as fast as possible. The faster you react, the better your score! Each player's high scores are displayed on a real-time leaderboard, making every challenge even more competitive. ⏱️
- Username Setup: Players enter their names to track scores. 📝
- Random Number Challenges: React to rapidly changing numbers within a specific time. 🔢
- Leaderboards: Compete to top the high score leaderboard. 🏆
- React: For building the user interface. ⚛️
- TypeScript: To maintain type safety and enhance development. 💻
- CSS3: Custom styling and animations for a smooth user experience. 🎨
- Vercel: Hosting the frontend for easy deployment. 🚀
- Node.js: For building scalable, server-side logic. 🌐
- Express: A minimal framework for API creation and routing. 🛠️
- Prisma: ORM for managing the database and migrations. 📊
- Render: Backend deployment for fast, scalable hosting. 📦
- Dynamic Gameplay: Players respond to fast-changing random numbers. 🎲
- Player Profiles: Track player scores with username input. 👤
- Real-time Leaderboards: Compete and track your scores against others. 📈
- Engaging UX: Includes animations and sound effects for a more immersive experience. 🎶
- Node.js (v14 or higher) 📦
- npm (Node package manager) 📜
git clone https://github.com/yourusername/timer-gamer.git
cd timer-gamer
-
Navigate to the
frontend
directory:cd frontend
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Navigate to the
backend
directory:cd backend
-
Install dependencies:
npm install
-
Set up the database and migrations using Prisma:
npx prisma migrate dev --name init npx prisma generate
-
Start the server:
npm run start
- Open your browser and navigate to
http://localhost:5173
for the frontend. 🌍 - Enter your name to begin playing and tracking your scores. 🕹️
- Choose from different challenges, improve your scores, and compete on the leaderboard! 🏅
https://timer-gamer-1.onrender.com/api
- GET /users/leaderboard/:timerKeyScore
- Retrieves the leaderboard for the specified timer challenge.
- Parameters:
timerKeyScore
: The key representing the timer (e.g.,timer1Score
). 📊
We welcome contributions to Timer Gamer! To contribute:
- Fork the repository. 🍴
- Create a new branch for your feature or fix. 🌿
- Make your changes and commit them. 💻
- Push your branch to your forked repository. 🚀
- Create a pull request to the main repository. 🔄
This project is licensed under the MIT License. See the LICENSE file for more details. 📜