diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ee1f9f2 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +.PHONY: all client server clean + +all: client server + +client: + pyinstaller --onefile src/nexus_sync/client/__main__.py --name nexus-sync-client + +server: + pyinstaller --onefile src/nexus_sync/server/__main__.py --name nexus-sync-server + +clean: + rm -rf build dist *.spec diff --git a/README.md b/README.md index e7b1452..54ff3ce 100644 --- a/README.md +++ b/README.md @@ -5,17 +5,21 @@ a utility that allows you to manage your computers. *Main Idea* server can send to every client "what to do". Centralized control for all clients. -## Server-side +## Development -- (to future) works in docker container -- accept connections on _some_ port with correct uuid from client -- works via API requests -- use _some_ database +``` +pip install -e .[dev] +``` -## Client-side +### To build -- with _some_ period of time, send info to the server -- if server want client to execute some command - - decrease fetch time period - - execute command - - send result back to the server +``` +make [client|server] +``` + + +### To test + +``` +pytest +``` diff --git a/pyproject.toml b/pyproject.toml index 9437714..3d8d32f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ dependencies = [] dev = [ "pytest>=8.0", "black>=24.0", + "pyinstaller>=6.0" ] [tool.setuptools.packages.find] diff --git a/src/nexus_sync/client/__main__.py b/src/nexus_sync/client/__main__.py new file mode 100644 index 0000000..16f5ba4 --- /dev/null +++ b/src/nexus_sync/client/__main__.py @@ -0,0 +1,6 @@ +def main() -> None: + print("nexus-sync client") + + +if __name__ == "__main__": + main()