add Makefile to build app

This commit is contained in:
2026-05-12 00:12:28 +03:00
parent d631b0ef68
commit 159a45140b
4 changed files with 34 additions and 11 deletions
+12
View File
@@ -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
+15 -11
View File
@@ -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
```
+1
View File
@@ -15,6 +15,7 @@ dependencies = []
dev = [
"pytest>=8.0",
"black>=24.0",
"pyinstaller>=6.0"
]
[tool.setuptools.packages.find]
+6
View File
@@ -0,0 +1,6 @@
def main() -> None:
print("nexus-sync client")
if __name__ == "__main__":
main()