Develop with Codespace
- Frontend: Bootstrap5
- Data Dashboard: bokeh
- Editor: Manacco Editor
- Web Terminal: Xterm.js
- Backend: Flask
- Database: MariaDB
Basically, the Code-Hub has(will have) these three main components:
- User Management: Authentication, Authorization and Questioning System
- account application form collection
- Single Sign ON (OpenLDAP + JWT)
- Time-based One-Time Password
- Ticket System
- System Security Cluster Status and User (danger operation) Monitoring
- Web-based Coding Interface
- Web Terminal (Xterm.js with
socketio
) - optional - Files Management (simple upload + download)
- Proxy Service (for
code-server
,MATLAB
,RStudio
, and etc.)
- Web Terminal (Xterm.js with
git clone [email protected]:Bayes-Cluster/Code-Hub-Gen2.git
cd Code-Hub-Gen2
conda creaet -n CodeHub python=3.7
python -m pip install -r requirements.txt
gunicorn --bind 127.0.0.1:5000 run:app
For production, we choose MariaDB as the database:
sudo apt-get update
sudo apt-get install mariadb-server libmariadb3 libmariadb-dev
python -m pip install mariadb
Then create a database called: CodeHub and user codehub:
sudo maraidb -u root -p
CREATE DATABASE CodeHub CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'codehub'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON codehub. * TO 'codehub'@'localhost';
FLUSH PRIVILEGES;