Code Monkey home page Code Monkey logo

hackide's Introduction

hackIDE

hackIDE is an online code editor, compiler and interpreter based on Django, powered by HackerEarth API! Go, hack it!

Screenshot-

Screenshot for HackIDE

Getting set up

Depending on your environment, you may need to install some libraries. On Debian/Ubuntu, you will need to:

sudo apt-get install libmysqlclient-dev libcurl4-gnutls-dev

To get your Python environment properly set up, you can create a virtual environment and use the requirements.txt file to install the proper versions of various libraries.

# Navigate to a directory of your choosing, where you will store your virtual environment.
$ mkdir virtualEnvs
$ cd virtualEnvs
$ virtualenv hackIDE_venv # We need python2. If you are using 3 by default, type virtualenv -p /usr/bin/python2.7 hackIDE_venv
$ source ~/virtualEnvs/hackIDE_venv/bin/activate
$ cd /location/of/your/copy/of/hackIDE
$ pip install -r requirements.txt

How to run the server locally

To run the server locally, you will need to do two things:

  1. Get a hackerearth API "Client Secret Key"
  2. Change the hackIDE_project/settings.py file

Get a Client Secret Key

Go to https://www.hackerearth.com/api/register/, create a HackerEarth profile and register a URL. You can register http://google.com, for example. Then you will be provided with a Client Secret Key.

Change the hackIDE_project/settings.py file.

Change the ALLOWED_HOSTS line to

ALLOWED_HOSTS = ['*'] if not DEBUG else ['*']

Then, startup the server with:

$ python manage.py collectstatic
$ HE_CLIENT_SECRET=your_token_here python manage.py runserver

Then, you can connect to the site at 0.0.0.0:8000.

TODO

  • Add "Download code as a zipped file" option
  • Implement "Save code on cloud" feature
  • Explain how to get a HackerEarth API key
  • Implement profiling system allowing users to make their profiles and saving codes in their profiles

Stargazers over time

Stargazers over time

hackide's People

Contributors

sahildua2305 avatar jssaini07 avatar melvyniandrag avatar prankymat avatar samwincott avatar dependabot[bot] avatar thebinitghimire avatar morrisjacob avatar pecey avatar rhnvrm avatar wrongsahil avatar bryant1410 avatar

Watchers

James Cloos 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.