Skip to content

imrosun/online-code-editor-python

Repository files navigation

Prerequistes

Python should be installed

Steps to setup django app locally

Open any newly created folder using vs code or any other IDE. folder name ex: online-code-editor Go to terminal and follow below steps.

  1. First create virtual environment
python -m venv myenvonline
  1. To activate venv
.\myenvonline\Scripts\activate
  1. Install django
pip install django
  1. To create project
git clone https://github.com/imrosun/online-code-editor-python.git
OR
django-admin startproject onlinecode

Skip if cloned

  1. To create app inside project
cd onlinecode
python manage.py startapp codeeditor

After this add app {'codeeditor'} inside INSTALLED_APPS on settings.py file

  1. To run server
python manage.py runserver
  1. To host on vercel

Step 1: Go to /onlinecode/settings.py Update ALLOWED_HOSTS = ['.vercel.app']

Step 2: Generate requirments.txt using command

pip freeze > requirements.txt

Step 3: Create vercel.json file in app folder or manage.py path

SCREENSHOT

About

A django based code editor for python, frontend using HTML, CSS, JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published