https://github.com/prince776/c2ladders
C2Ladders is a reconstruction of old a2oj Ladders with new and updated problemset.
https://github.com/prince776/c2ladders
codeforces competitive-programming
Last synced: 4 months ago
JSON representation
C2Ladders is a reconstruction of old a2oj Ladders with new and updated problemset.
- Host: GitHub
- URL: https://github.com/prince776/c2ladders
- Owner: prince776
- License: mit
- Created: 2022-02-12T18:28:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-30T12:55:07.000Z (over 2 years ago)
- Last Synced: 2023-09-30T13:42:24.904Z (over 2 years ago)
- Topics: codeforces, competitive-programming
- Language: TypeScript
- Homepage: https://c2-ladders.com/
- Size: 143 KB
- Stars: 61
- Watchers: 2
- Forks: 24
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C2 Ladders
C2Ladders is rating wise list of Codeforces problems which were solved by many people who have had stable rating increase.
It's a reconstruction of old a2oj Ladders with new and updated problemset.
It's live at: https://c2-ladders-juol.onrender.com
Script for creation of ladders is available here: https://github.com/prince776/scripts-yt/tree/master/ladder
# How to build
To build this, you have to worry about `backend/` and `frontend/` folders only, the files outside are mainly concerned with deployment on azure.
I've also created a staging database which you can use while development.
Credentials are open, please don't misuse (it has incomplete data):
username = test
password = 0XP0V69Lvhwu9wbo
## Backend
Inside `backend/` folder
In `src/index.ts`:
Change the `mongoose.connect` line to: (keep this change locally only)
```
mongoose.connect(`mongodb+srv://${db.user}:${db.pass}@cluster0.robkk.mongodb.net/test?retryWrites=true&w=majority`);
```
Then to build and run:
```
$ npm install
$ DB_USER=test DB_PASS=0XP0V69Lvhwu9wbo npm run dev
```
## Frontend
Inside `frontend/` folder
To build and run:
```
$ npm install
$ npm start
```
## Deployment
In the main dir:
```
npm run build
npm run start # and specify all env variables mentioned in .env
```
`BASE_URL` env var is to specify the base address of the url the website will be hosted at.