Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1022 Bytes

README.md

File metadata and controls

64 lines (46 loc) · 1022 Bytes

Code View server

Build Status

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