Imposta app desktop Electron/Vue con backend FastAPI
- Aggiunge scaffold frontend Vue con UI base e build verso renderer - Introduce backend FastAPI con endpoint generazione e salvataggio JSON - Sposta i generatori in backend e aggiorna CLI main.py - Aggiorna README, requirements e .gitignore per artefatti e config - Configura Electron (main/preload) e script npm per dev/build
This commit is contained in:
45
package.json
Normal file
45
package.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "addressgen",
|
||||
"version": "0.1.0",
|
||||
"description": "Desktop app for generating Bitcoin addresses",
|
||||
"main": "desktop/main.js",
|
||||
"scripts": {
|
||||
"setup:py": "python3 -m pip install -r requirements.txt",
|
||||
"dev:backend": "python3 backend/app.py",
|
||||
"dev:frontend": "vite --config frontend/vite.config.js",
|
||||
"dev:electron": "wait-on http://localhost:5173 && electron .",
|
||||
"dev": "concurrently -k \"npm:dev:backend\" \"npm:dev:frontend\" \"npm:dev:electron\"",
|
||||
"build:frontend": "vite build --config frontend/vite.config.js",
|
||||
"build:backend": "pyinstaller --name addressgen-backend --onefile backend/app.py --distpath backend/dist --workpath backend/build --specpath backend",
|
||||
"build": "npm run build:frontend && npm run build:backend && electron-builder --linux"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^5.0.0",
|
||||
"concurrently": "^8.2.2",
|
||||
"electron": "^30.0.0",
|
||||
"electron-builder": "^24.13.3",
|
||||
"vite": "^5.4.0",
|
||||
"vue": "^3.4.0",
|
||||
"wait-on": "^7.2.0"
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.addressgen.app",
|
||||
"productName": "AddressGen",
|
||||
"directories": {
|
||||
"output": "release"
|
||||
},
|
||||
"files": [
|
||||
"desktop/**",
|
||||
"frontend/**"
|
||||
],
|
||||
"extraResources": [
|
||||
{
|
||||
"from": "backend/dist/addressgen-backend",
|
||||
"to": "backend/addressgen-backend"
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
"target": ["AppImage"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user