TypeBattle is a multiplayer online browser-based typing game. In TypeBattle, players complete typing tests of various texts as fast as possible, competing against themselves or with other users online
- Authentication
- Authorization
- Responsive
- Cross platform
Framework: Vite
Client: HTML, CSS, JavaScript
Server: Node.js, Express.js, Socket.io
Database: MongoDB, Redis
Clone the project
git clone https://github.com/faraz412/acceptable-straw-3421
Go to the project directory
cd acceptable-straw-3421
Install dependencies
npm install
Start the server
node index.js
To run this project, you will need to add the following environment variables to your .env file
key
mongourl
PORT
GET /api
POST /api/user/register
POST /api/user/login
POST /api/admin/register
POST /api/admin/login
GET /api/content/
POST /api/content/addcontent
PATCH /api/content/update/:id
DELETE /api/content/delete/:id