GitHub - code-view/server: Backend of code-view.io
Repository navigation
serverPublic
About
Backend of code-view.io
code-view.io/Resources
Readme Activity Custom propertiesStars
1 starWatchers
1 watchingForks
0 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
11 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| code_view | code_view | ||
| tests | tests | ||
| .dockerignore | .dockerignore | ||
| .gitignore | .gitignore | ||
| .travis.yml | .travis.yml | ||
| Dockerfile | Dockerfile | ||
| README.md | README.md | ||
| requirements.txt | requirements.txt | ||
Repository files navigation
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
About
Backend of code-view.io
code-view.io/