Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Bayes-Cluster/Code-Hub-Gen2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code-Hub-Gen2

python-version flask Werkzeug MariaDB

Develop with Codespace

Tech Stack

Components

Basically, the Code-Hub has(will have) these three main components:

  1. User Management: Authentication, Authorization and Questioning System
    1. account application form collection
    2. Single Sign ON (OpenLDAP + JWT)
    3. Time-based One-Time Password
    4. Ticket System
  2. System Security Cluster Status and User (danger operation) Monitoring
    1. Server current usage and historical usage - (optional: netdata)
    2. Auditing (Asciinema)
    3. Auto Blocking (Crypto-mining and etc.)
  3. Web-based Coding Interface
    1. Web Terminal (Xterm.js with socketio) - optional
    2. Files Management (simple upload + download)
    3. Proxy Service (for code-server, MATLAB, RStudio, and etc.)

Installation

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;

Acknowledgement

BNU-HKBU United International College

jwt

flask

mariadb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published