slurp 2ba5a7bceb Make README.md cool | преди 7 години | |
---|---|---|
data | преди 7 години | |
src | преди 7 години | |
.gitignore | преди 7 години | |
README.md | преди 7 години | |
client.py | преди 7 години | |
meson.build | преди 7 години | |
meson_options.txt | преди 7 години | |
servertest.py | преди 7 години |
Advanced Smoker Syncronisation Protocol
With nico you syncronize your nicotin-ballance with others. It's based on the AASP (advanced smoker synchronisation protocol).
To understand stuff you should take about 5 minutes and read this.
First clone the git repository to your local machine:
git clone git@github.com:grindhold/nico.git
To build the binaries we use the meson build system (more information).
Install meson:
sudo apt install meson
Install nico dependencies:
sudo apt install libglib2.0-0 libjson-glib-1.0-common libgirepository1.0-dev libgtk-3-0 gir1.2-gtk-3.0
Create build directory and prepare files:
cd nico
mkdir build
meson build
Compile:
cd build
ninja
Now there should be a clientapp
and a server
in your /build
directory.
You can run them by typing ./server
.
Recompiling is easy: ninja
This is kinda short. If you really want to know it, read
this and take a look at the servertest.py
.
The server holds information about all sessions and updates each client.
The client can create
smoking sessions, join
them and leave
them.
The join
and create
request tells the server your resources (tabak, filter, papes, lighter).