Backend of code-view.io – service for streaming code.
Install dependencies with:
pip install -r requirements.txt
Run server with:
python -m code_view.main
Run tests with:
py.test
Run server:
docker run codeview/server
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.