Skip to content

A training platform for competitive programmers to increase their problem-solving speed.

License

Notifications You must be signed in to change notification settings

arujbansal/cpdrills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpdrills

CP Drills (Competitive Programming Drills) is a training platform designed to help increase your problem-solving speed by giving you access to several analytics. I no longer host the website, so its source code is publicly available to be run locally! You can look at the platform temporarily hosted here but it is likely that you cannot access practice features here. You can download and run the code locally by following the usage guide.

If you fork this repository and work on your own version, I ask that you link this repository at the start of your README to give credit.

Usage Guide

  1. Clone this repository, create a python virtual environment, and install the requirements:
$ pip install -r requirements.txt
  1. Create a .env file using env_template.txt and fill in the required fields.
  2. Initialise the database:
$ python manage.py migrate
$ python manage.py makemigrations
  1. Create a super user to login to the website:
$ python manage.py createsuperuser
  1. Run the FastAPI server used to query the Codeforces API:
$ uvicorn cf_api_server:app --host 0.0.0.0 --port 8080
  1. Start the django app in the cpdrills directory:
$ cd cpdrills
$ python manage.py runserver
  1. Open the website, login with your superuser account, and add your Codeforces handle to your profile. You may need to navigate to /admin and update your superuser profile's details if you cannot directly save your profile.

Note: If something breaks, it is likely that a path or URL needs to be updated. Just follow the error and change the required paths. Check the FastAPI endpoint.

About

A training platform for competitive programmers to increase their problem-solving speed.

Resources

License

Stars

Watchers

Forks