← Winnitude! Search  ·  Reader Mode (695 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 39 LINKS

GitHub - code-view/server: Backend of code-view.io

Repository navigation

server
Public

About

Backend of code-view.io

code-view.io/

Resources

Readme Activity Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks Report repository
Branches

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/

Resources

Readme Activity Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks Report repository

Releases

Packages

Contributors

Languages