Test your typing skills the right way!
This mini-game is designed and structured to help you improve your typing speed and accuracy in coding.
- 1-Minute timer
- Code-like text structure
- Mistakes counter
- Frontend: Vite, React, Zustand, Tailwind, TypeScript
- Backend: Node.js, Express
- Database: PostgreSQL
- Node.js (v18+ recommended)
- PostgreSQL installed and running
-
Clone the repository:
git clone https://github.com/Boostry123/TypingGame.git cd TypingGame -
Set up the Backend:
- Navigate to the backend/server directory:
cd server - Install dependencies:
npm install
- Navigate to the backend/server directory:
touch .env# Server Port
PORT=3001
# PostgreSQL Database Connection
DB_USER=postgres
DB_HOST=localhost
DB_DATABASE=typing_game_db # Or whatever you named it
DB_PASSWORD=your_password
DB_PORT=5432
PORT=3001
- DataBase
You can add your own text files using the api calls with Postman , If you want some examples you will find them in the server/seed/snippets.json
- Start the server:
npm run dev
- Start the server:
-
Set up the Frontend:
- Navigate to the frontend/client directory (from the root):
cd ../client - Install dependencies:
npm install
- Start the client:
npm run dev
- Navigate to the frontend/client directory (from the root):
-
Open
http://localhost:5173(or your Vite port) in your browser.
- Add more stores
- Add first setup script to populate example snippets (seeding)
- Simple Users system and Auth