Skip to content

dipamsen/cpbattles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPBattles

CPBattles Logo

Description

A platform for competitive programming battles where players can create, join and compete in solving Codeforces problems. Problems are randomly selected from the Codeforces problemset and players must solve them within a time limit.

Development

This project uses a Node.js backend and a React frontend. The backend is responsible for managing battles, users, and problem selection, while the frontend provides the user interface for players to interact with the platform. It requires two databases - one PostgreSQL database for main data storage, and one MongoDB database for managing scheduled tasks.

Database

Start the PostgreSQL and MongoDB containers:

cd server
docker-compose up -d

Backend

  1. Go to the server directory.
  2. Install dependencies:
    npm install
  3. Copy the .env.sample file to .env and fill in the required environment variables.
  4. Start the backend server:
    npm run dev # or npm run build && npm start

Frontend

  1. Go to the client directory.
  2. Install dependencies:
    npm install
  3. Fill in the .env file with the required environment variables.
  4. Start the frontend server:
    npm run dev

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

CP Battles: Compete with friends to solve Codeforces problems!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages