add Makefile to build app
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -15,6 +15,7 @@ dependencies = []
|
||||
dev = [
|
||||
"pytest>=8.0",
|
||||
"black>=24.0",
|
||||
"pyinstaller>=6.0"
|
||||
]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
def main() -> None:
|
||||
print("nexus-sync client")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user