Skip to content

LSvalbar/AssetFixed

Repository files navigation

Asset Fixed Management System

This repository contains an intranet-ready fixed asset management system with a Spring Boot backend and a Vue 3 frontend.

Default Admin

  • Username: admin
  • Password: admin123

Backend

  • Tech: Java 21, Spring Boot 3, PostgreSQL, Flyway
  • Location: backend/

Run (local)

  1. Create a PostgreSQL database: asset_fixed
  2. Update backend/src/main/resources/application.yml
  3. Start backend:
    • mvn spring-boot:run

Frontend

  • Tech: Vue 3, Vite, Element Plus
  • Location: frontend/

Run (local)

  1. Install deps: npm install
  2. Start dev server: npm run dev

Docker

Build and run with Docker Compose:

docker compose up --build

Single Image (All-in-One)

Build and run a single container that includes PostgreSQL + Redis + Backend + Frontend:

docker build -t asset-fixed-allinone .
docker run -d -p 8081:80 -p 8080:8080 -v asset_fixed_db:/var/lib/postgresql/data -v asset_fixed_storage:/data/storage asset-fixed-allinone

Modules

  • Organization: departments, users, roles, permissions (RBAC)
  • Assets: computer + physical assets, CRUD, events, code rules
  • Approval: workflow + external callback endpoints
  • Depreciation: policies, calculation records
  • Attachments: file upload, download, list, delete
  • Audit: operation logs
  • Endpoint Agent: Windows service package for heartbeat reporting, IP/MAC tracking, and endpoint change monitoring

Endpoint Agent

  • Source: agent/AssetFixed.EndpointAgent/
  • Build package: powershell -ExecutionPolicy Bypass -File .\scripts\build-endpoint-agent-package.ps1
  • Usage doc: docs/windows-endpoint-agent.md

API Base Paths

  • /api/auth/*
  • /api/org/*
  • /api/assets/*
  • /api/approvals/*
  • /api/integration/approvals/*
  • /api/depreciation/*
  • /api/attachments/*
  • /api/audit/*

About

适用公司内部的固定资产管理系统

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors