Giter Site home page Giter Site logo

anshuman212 / cpdrills Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arujbansal/cpdrills

0.0 0.0 0.0 5.08 MB

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

Home Page: https://arujbansal.pythonanywhere.com/

License: GNU General Public License v3.0

JavaScript 52.13% Python 13.06% CSS 16.63% HTML 18.18%

cpdrills's Introduction

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. Since it is no longer being maintained, its source code is open to the public. 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.

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.

cpdrills's People

Contributors

arujbansal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.