Skip to content

PSKP-95/code_editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code - RTC

Installation & Information

PyPi (Last Release)

pip install code-rtc

Then run application using console

code-rtc

Linux Latest Version

Step 1

Clone Repository

git clone https://github.com/PSKP-95/code_rtc.git

Step 2

Setup Database. In backend/data folder create sqlite3 database file

sqlite3  code_RTC.db
Schema for Sqlite3
for bucket
CREATE TABLE bucket (
  node_id integer PRIMARY KEY AUTOINCREMENT,
  type int(2) NOT NULL,
  node varchar(50) NOT NULL,
  file text,
  parent int(11) NOT NULL, 
  flag integer,
  note text
);
for tests
CREATE TABLE tests (
  test_id integer PRIMARY KEY AUTOINCREMENT,
  type int(1) NOT NULL,
  input text NOT NULL,
  output text NOT NULL,
  node_id int(11) NOT NULL,
  status int(11) NOT NULL DEFAULT '0',
  CONSTRAINT fk_node
  FOREIGN KEY (node_id)
  REFERENCES bucket(node_id)
);

Step 3

Start flask server. Open terminal in backend

set FLASK_APP=app.py
python -m flask run --port=8888

Start angularJS client. Open terminal in frontend

npm start

To Do

  • Creating Code
  • Running Code on user input
  • Creating Testcases
  • Running on Testcases
  • File explorer
  • Context menu for File explorer with delete, cut, rename, paste.
  • Export files
  • Import Folders/Files
  • Tab System

Testing

This application is tested on Ubuntu 19.10, Ubuntu 20.04, Windows 10 with Firefox Web Browser

mysql and sqlite3

Need to just change DATABASE in code_rtc/backend/src/db.py

  • mysql : for mysql / mariadb
  • sqlite3 : for sqlite3

Demo

See Video on Youtube https://www.youtube.com/watch?v=QwXDyiKYOas (Not upto date)

License

Free Software: GNU General Public License v3.0

Releases

No releases published

Packages

No packages published

Languages