/CodeHike

Repository contains work for Codechef API Hackathon

Primary LanguagePython

CodeChef Virtual Contest(CVC)

- a way to replay past codechef contests.

This Web app lets you play Codechef Contests as virtual contests.
It feels just like a real contest with real contestants competing alongside with the participant who participate a virtual contest.

WebApp is hosted at - http://149.129.145.244

It will be very helpful for preparation of short contests. Few of the features are :

  • You can add Friends and see their separate ranklist during live virtual contest.
  • Several people can play virtual contest together and see each others ranking.
  • All COOKOFF's starting from COOK01 to recent COOK98A/B are available to play as virtual contest.
  • You can compare yourself with other people while virtual contest is in play.
  • Video Tutorial to Use WebApp : Video link (Just a short 12 min video, you can watch at 1.5x :P)

Slides for better understanding of App: Slides(We both are very poor in making slides, we apologize beforehand _/\_)

Note : Judgement result takes a while to reflect in standings as Codechef restricts no. of API requests in a min.(6 calls/min), just refresh the page in a while.

Technologies used -

  • Flask
  • MongoDB
  • Jinja2 Template

How to Install -

  • pip3 install -r requirements.txt
  • You also need to put your client_id, client_secret, redirect_uri in app_data collection in db.
  • The Database server is hosted on Alibabacloud, thus requires URI, and password, which you need to set up in file db_conn.py, set DB_PASS environment variable which has passkey to your DB.
  • Deploy using Gunicorn using gunicorn app:app -b 127.0.0.1:5000

Developed during Codechef API Hackathon by Hasan Alirajpurwala and Vishvanath Dutt Sharma