A modern typing game built with HTML, CSS, and Vanilla JavaScript. Features include user authentication (including Google Sign-In), typing statistics tracking, and a beautiful UI design.
- User authentication (Email/Password and Google Sign-In)
- Real-time typing speed measurement
- Statistics tracking
- Modern UI with Tailwind CSS
- A responsive landing page
- Node.js (v14 or higher)
- PostgreSQL database
- Clone the repository
- Install Live Server extension in VS Code
-
Navigate to the backend directory:
cd backend npm install -
Create
.envfile from.env.exampleand configure:- Database credentials
- JWT secret
- SMTP settings for email
- Google OAuth credentials
- Frontend URL
- SSL use or not
-
Set up the database:
- Create a database in PostgreSQL
- Use the SQL commands in
backend/src/utils/database.sql - Execute them in your PostgreSQL database
-
Start the backend server:
npm run dev
- Go to Google Cloud Console
- Create a new project
- Enable the Google+ API
- Create OAuth 2.0 credentials
- Add authorized origins:
http://localhost:5500 http://127.0.0.1:5500 - Add authorized redirect URIs:
http://localhost:5500/src/components/pages/login.html http://127.0.0.1:5500/src/components/pages/login.html - Copy credentials to your environment files
Use VS Code with Live Server for frontend development. The backend will run on http://localhost:3000.