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*
|
*Main Idea*
|
||||||
server can send to every client "what to do". Centralized control for all clients.
|
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
|
pip install -e .[dev]
|
||||||
- works via API requests
|
```
|
||||||
- use _some_ database
|
|
||||||
|
|
||||||
## Client-side
|
### To build
|
||||||
|
|
||||||
- with _some_ period of time, send info to the server
|
```
|
||||||
- if server want client to execute some command
|
make [client|server]
|
||||||
- decrease fetch time period
|
```
|
||||||
- execute command
|
|
||||||
- send result back to the server
|
|
||||||
|
### To test
|
||||||
|
|
||||||
|
```
|
||||||
|
pytest
|
||||||
|
```
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ dependencies = []
|
|||||||
dev = [
|
dev = [
|
||||||
"pytest>=8.0",
|
"pytest>=8.0",
|
||||||
"black>=24.0",
|
"black>=24.0",
|
||||||
|
"pyinstaller>=6.0"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[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