Skip to content

code-view/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages