ERP Desktop App base on Flask & Electron
Install pre-requisites
- Python3
- Python3-pip
- Node.js
- npm
- Sqlite
-
Install Python & Python-pip
-
Ubuntu
apt install python3 python3-pip -y
-
CentOS
dnf install python3 python3-pip -y
-
-
Install Node.js & npm
-
Ubuntu
apt install nodejs -y
-
CentOS
dnf install nodejs -y
-
sqlite server/src/erp.db < server/database.sql
Restore backend dependencies.
cd server
pip3 install -r requirements.txt
Restore frontend dependencies.
cd client
npm install
Restore backend and frontend dependencies with script.
-
use bash
bash scripts/restore.sh
-
use powershell
pwsh scripts/restore.ps1
build backend and move it to frontend resources folder.
pyinstaller -F server/main.spec
mkdir -p client/resources/server
mv dist/main/* client/resources/server
run frontend
npm run start
use build script.
-
use bash
bash scripts/build.sh
-
use powershell
pwsh scripts/build.ps1
- Login
- DarkMode
- Sale manager
- User manager
- Product manager