Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lixinyang123/erp

ERP Desktop App base on Flask & Electron
https://github.com/lixinyang123/erp

electron erp flask spa

Last synced: 25 days ago
JSON representation

ERP Desktop App base on Flask & Electron

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

![login](./screenshots/login.png)

- DarkMode

![dark](./screenshots/dark.png)

- Sale manager

![sale](./screenshots/sale.png)

- User manager

![user](./screenshots/user.png)

- Product manager

![product](./screenshots/product.png)