Public | Automated Build

Last pushed: a year ago
Short Description
code-view.io backend
Full Description

Code View server

Backend of code-view.io – service for streaming code.

Development

Install dependencies with:

pip install -r requirements.txt

Run server with:

python -m code_view.main

Run tests with:

py.test

Usage

Run server:

docker run codeview/server

API

Session object:

{
    id: str,
    secureToken: str,
    fileName: str,
    text: str,
    selectionStartLine: int,
    selectionStartColumn: int,
    selectionEndLine: int,
    selectionEndColumn: int
}

Endpoints:

  • POST:/api/session/ – create new streaming session (accepts empty object);
  • PUT:/api/session/{id}/ – update streaming session;
  • GET:/api/session/{id}/ – get streaming session;
  • WS:/channel/session/{id}/ – subscribe to streaming session.

License MIT

Docker Pull Command
Owner
codeview
Source Repository