Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PSKP-95/code_editor

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

About

Easy to store, test code in programming contests.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /