一个非常简单的记账本go+vue开发

看着小县城的小店主天天手写记账

我找了一圈免费的进销存,每一个好使的

于是自己开发了一款

EasyBook

EasyBook is a small inventory and bookkeeping app for local shops.

Stack

  • Go backend

  • Vue 3 frontend

  • MySQL storage

Quick start

Option 1: Use a local MySQL installation

  1. Install MySQL 8.x on your machine, or use any existing MySQL server.

  2. Create a database named `easybook` with `utf8mb4` charset.

  3. Import `schema.sql` into that database.

  4. Update `config.yaml` with your MySQL connection and initial admin account.

  5. Start the backend:

```bash

go run ./cmd/server

```

  1. Open `http://localhost:8080` on desktop or mobile.

The first login uses the bootstrap account from `config.yaml`:

  • `bootstrap_username`

  • `bootstrap_password`

Option 2: Use a custom config file

Set `EASYBOOK_CONFIG` if you want to point to another YAML file:

```powershell

$env:EASYBOOK_CONFIG="E:\path\to\config.yaml"

go run ./cmd/server

```

Option 3: Docker later

The included `docker-compose.yml` is only a convenience. You do not need Docker to run EasyBook.

Handy scripts

  • `.\build.ps1` builds `bin\EasyBook.exe`

  • `.\run.ps1` starts the app and writes a PID file

  • `.\stop.ps1` stops the running app

Features in this first cut

  • Dashboard summary

  • Products

  • Stock in and stock out

  • Mobile-friendly layout

  • Config-file based startup

  • Login and role-based access

相关推荐
全频道2 年前
日常记账:解锁生活财务管理的秘密钥匙
生活·记账本