# MyOffice ASP.NET Core API + Angular SPA. This repository has the **source needed to build**, plus Proxmox install scripts. Runnable binaries are **Gitea Releases** (`myoffice-publish.tar.gz`). ## Install on Proxmox (one line) On the Proxmox host: ```bash bash -c "$(curl -fsSL https://mygit.ase.com.ua/alexandr/myoffice_public/raw/branch/master/proxmox/myoffice.sh)" ``` If the CT cannot reach Gitea by DNS (hairpin), pass the nginx/proxy LAN IP as an argument — it is written into the CT `/etc/hosts` for `mygit.ase.com.ua`: ```bash bash -c "$(curl -fsSL https://mygit.ase.com.ua/alexandr/myoffice_public/raw/branch/master/proxmox/myoffice.sh)" 192.168.100.10 ``` Creates an LXC with PostgreSQL + ASP.NET runtime, downloads the latest release, starts the app on port **9100**. Point your nginx LXC at `http://:9100`. Optional overrides: ```bash export RELEASE_TAG="latest" # or v1.2.3 export GITEA_HOSTS_IP="192.168.100.10" # same as the trailing arg ``` Details: [proxmox/README.md](proxmox/README.md). ## Build from source Requirements: .NET 10 SDK, Node.js 20+. ```bash ./proxmox/publish.sh --tar # Windows: .\proxmox\publish.ps1 -Tar ``` Output: `_Published/` (API + SPA in `wwwroot`) and optional `myoffice-publish.tar.gz`. Local development: ```bash dotnet build MyOffice.Web/MyOffice.Web.csproj cd MyOffice.SPA && npm start # after npm install; http://localhost:4300 # Run MyOffice.Web (API http://localhost:9100); set FrontEnd:Host to the SPA origin ``` ## Demo logins Seeded on empty DB: - `user_UAH@user_UAH.userUAH` / `user_UAH` (also USD, EUR variants)