https://github.com/lixinyang123/erp
ERP Desktop App base on Flask & Electron
https://github.com/lixinyang123/erp
electron erp flask spa
Last synced: 10 months ago
JSON representation
ERP Desktop App base on Flask & Electron
- Host: GitHub
- URL: https://github.com/lixinyang123/erp
- Owner: lixinyang123
- License: mit
- Created: 2021-04-19T15:10:24.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-13T21:13:22.000Z (about 4 years ago)
- Last Synced: 2025-06-03T04:01:56.551Z (about 1 year ago)
- Topics: electron, erp, flask, spa
- Language: JavaScript
- Homepage:
- Size: 692 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Enterprise Resource Planning
ERP Desktop App base on Flask & Electron
### How to Contribute?
Install pre-requisites
- Python3
- Python3-pip
- Node.js
- npm
- Sqlite
##### On Windows
- Install [Python](https://www.python.org/) ( Included pip )
- Install [Nodejs](https://nodejs.org/) ( Included npm )
##### On Linux
- Install Python & Python-pip
- Ubuntu
```bash
apt install python3 python3-pip -y
```
- CentOS
```bash
dnf install python3 python3-pip -y
```
- Install Node.js & npm
- Ubuntu
```bash
apt install nodejs -y
```
- CentOS
```bash
dnf install nodejs -y
```
### Create database
```bash
sqlite server/src/erp.db < server/database.sql
```
### Restore dependencies
Restore backend dependencies.
```bash
cd server
pip3 install -r requirements.txt
```
Restore frontend dependencies.
```bash
cd client
npm install
```
Restore backend and frontend dependencies with script.
- use bash
```bash
bash scripts/restore.sh
```
- use powershell
```powershell
pwsh scripts/restore.ps1
```
### Run
build backend and move it to frontend resources folder.
```bash
pyinstaller -F server/main.spec
mkdir -p client/resources/server
mv dist/main/* client/resources/server
```
run frontend
```bash
npm run start
```
### build
use build script.
- use bash
```bash
bash scripts/build.sh
```
- use powershell
```powershell
pwsh scripts/build.ps1
```
### screenshots
- Login

- DarkMode

- Sale manager

- User manager

- Product manager
