File: README.md

package info (click to toggle)
python-wslink 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,396 kB
  • sloc: python: 2,849; javascript: 1,176; cpp: 29; makefile: 3
file content (36 lines) | stat: -rw-r--r-- 942 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Chat

This is a test application that illustrate how to setup a Python server with a Web Client along with a C++ client.

## Python server

If you have `wslink` installed on your python you can run the following command

```sh
python ./server/chat.py --content ./www --port 8080
```

Then open your browser on `http://localhost:8080/`

You can also use `ParaView/pvpython` to run the same command so you don't have to worry about Python and wslink availability.

## Web client

The following set of commands will transpile the JavaScript code and generate the `./www` directory that is served by the server process.
That bundled version has already been publish to the repository but in case you want to update or edit the code, the following commands will update that directory.

```sh
cd clients/js
npm install
npm run build
```

## C++ client

...todo...

## Running via the launcher

```
python -m wslink.launcher ./launcher.config
```