https://github.com/harsh-modi278/cf-codearena
Compete 1v1 with your friend on codeforces in real-time
https://github.com/harsh-modi278/cf-codearena
bootstrap codeforces ejs expressjs mongoose nodejs socket-io
Last synced: 3 months ago
JSON representation
Compete 1v1 with your friend on codeforces in real-time
- Host: GitHub
- URL: https://github.com/harsh-modi278/cf-codearena
- Owner: Harsh-Modi278
- Created: 2021-01-03T10:51:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-07T17:59:57.000Z (over 5 years ago)
- Last Synced: 2026-01-03T12:25:52.982Z (6 months ago)
- Topics: bootstrap, codeforces, ejs, expressjs, mongoose, nodejs, socket-io
- Language: JavaScript
- Homepage: https://cf-codearena.herokuapp.com/
- Size: 227 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CF-Codearena
Compete 1v1 with your friend on codeforces in real-time
Live demo: https://cf-codearena.herokuapp.com/
Developed using `Node.js, Express, and MongoDB`
To show updates in real-time, we have used [socket.io](https://socket.io/)
Bootstrapped with [Bootstrap](https://getbootstrap.com/)
# Description
### About
1. To use CF-Codearena, you will need to login to Codeforces and then enter with your Codeforces handle.
2. After logging in, you will need to create a new room and then share the room password with your peer with whom you want to compete.
3. A Codeforces problem link will be given according to the ratings of both users. After submitting the solution on Codeforces, press the submit button on Codearena.
### Note
* It may not work properly if you try to enter using other's CF-handle.
* If any of the users' in the room disconnects, the room will be closed, and you will need to start again.
* Don't refresh the page after the problem link is given.
# Developement
* You need to install Node to start the developement environment. Download Node here: [Node](https://nodejs.org/en/)
* You need to setup a .env file in the root of the repository. The template for the same is as following:
```
JWT_key = # your secret key for jwt authentication
MONGOURI = # mongoDB atlas link of your database
SESSION_SECRET = # session secret key
```
* Run
```
npm i
npm start
```