Coder Social home page Coder Social logo

abhisheksrikanth / competition-finder Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 80 KB

A simple web application to find upcoming coding contests in Codechef.com and Codeforeces.com

Python 38.33% CSS 0.76% HTML 60.91%
flask flask-application flask-sqlalchemy urllib beautifulsoup4 html css python3 python bootstrap4 flask-session

competition-finder's Introduction

Competition Finder

A simple web application to find upcoming coding contests in Codechef.com and Codeforeces.com

Important: A Jinja error may occur when logging-in just after a fresh sign-up, reloading the webpage will fix it and take you to the Dashboard!. This is due to some unresponsiveness of SQLite.

Setup and Execution

Requirements

  • Python 3.6+
  • Python dependencies can be installed from requirements.txt
$ pip install -r requirements.txt

(Use pip3 if both Python 2.x and Python 3.x are installed)

Creating SQLite Database

Initialize the database by executing this command in the root folder. (Use python3 if both Python 2.x and Python 3.x are installed)

$ python

This should open a python console. In the console execute

>>> from main import db
>>> db.create_all()

(Ignore any warnings)

Exit the python console. A SQLite database users.db should have been created in the root folder.

Running the Flask Server

In the root folder,

python main.py

(Use python3 if both Python 2.x and Python 3.x are installed)

After the server is hosted locally, open the web page by following the link on the console.

About the application

This is a simple and light weight application which uses Flask as backend server and urllib and beatifulsoup for scraping data from competitive coding websites.

Specifications

  • Flask Backend
  • SQLite for Database (Using Flask_SQLAlchemy)
  • urllib and BeautifulSoup4 for web-scraping data.
  • HTML and CSS Frontend with Bootstrap 4
  • Flask-sessions used to know if user is logged in.

This application is design to be minimalistic with only the required UI elements and no clutter. The user needs to be logged-in to view their Dashboard where all the competitions are neatly presented in a list-view.

competition-finder's People

Contributors

abhisheksrikanth avatar dependabot[bot] avatar

Watchers

 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.