Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗
A full-stack property data management system with a multi-user upload portal and a real-time admin dashboard — powered by Flask, MongoDB Atlas, and Chart.js.
Sinhas GmbH is a web-based data management platform built for managing Swiss property (apartment) records. It provides two distinct interfaces:
User Portal (/) — A clean, professional SaaS-style interface for data entry teams to upload Excel/CSV files in bulk, run structured ETL jobs, or manually enter individual property records directly into MongoDB.
Admin Dashboard (/admin) — A real-time analytics and data management panel for administrators to view charts, browse all MongoDB collections, search/filter records, and perform inline edits.
| Feature | Description |
|---|---|
| Bulk Upload | Upload any .xlsx or .csv file; each sheet becomes a MongoDB collection |
| Occupancy ETL | Upload the master OCCUPANCY Excel file; auto-parses into structured cities, buildings, and apartments collections |
| Manual Entry | Form-based single record insertion with all key property fields matching MongoDB schema |
| Drag & Drop | Drag and drop files directly onto the upload zones |
| Feature | Description |
|---|---|
| KPI Cards | Real-time counts — Total Properties, Occupied, Available, Buildings |
| 4 Live Charts | Occupancy donut, Properties by City bar, System Overview bar, Apartments pie — all via Chart.js |
| Dynamic Sidebar | Auto-fetches all MongoDB collections; click any to browse its data |
| Data Table | Paginated, searchable table for any collection with configurable row limit |
| Load All Data | One-click button to fetch all records from the active collection |
| Inline Edit | Click "Edit" on any row to open a field-level modal and save changes to MongoDB |
| Layer | Technology |
|---|---|
| Backend | Python 3.11, Flask 3.0 |
| Database | MongoDB Atlas (PyMongo 4.6) |
| Data Processing | Pandas 2.2, OpenPyXL 3.1 |
| Frontend | Vanilla HTML, CSS, JavaScript |
| Charts | Chart.js (CDN) |
| Server (Prod) | Gunicorn 21.2 |
| Deployment | Render (via render.yaml) |
| Fonts | Google Fonts — Inter |
sinhasgmbh/
│
├── app.py # Flask application & all API routes
├── index.html # User Portal — upload & manual entry UI
├── admin.html # Admin Dashboard — charts, tables, edit modal
│
├── requirements.txt # Python dependencies
├── render.yaml # Render deployment configuration
├── .env # Local environment variables (git-ignored)
├── .gitignore
│
├── migrate_keys.py # DB migration script (sanitizes field names)
├── import_from_excel.py # Standalone ETL script (CLI)
├── upload_apartments.py # CLI uploader for apartment records
├── upload_flat.py # CLI uploader for flat records
├── analyze_excel.py # Analysis/inspection utility for sheets
├── test_mongo.py # MongoDB connection test script
└── test_server.py # Flask server endpoint test script
git clone https://github.com/deba2k5/sinhasrealty.git
cd sinhasrealty
# Windows
python -m venv .venv
.venv\Scripts\activate
# macOS / Linux
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Create a .env file in the project root:
MONGO_URI=mongodb+srv://<username>:<password>@<cluster>.mongodb.net/?appName=<app>
See Environment Variables for details.
python app.py
Open your browser at:
http://localhost:5000/http://localhost:5000/admin| Variable | Required | Description |
|---|---|---|
MONGO_URI | ✅ Yes | Full MongoDB Atlas connection string with credentials |
The app falls back to a default URI if MONGO_URI is not set, but it is strongly recommended to set it via .env for local development and via the hosting provider's environment settings for production.
All API endpoints return JSON.
| Method | Endpoint | Description |
|---|---|---|
POST | /upload | Bulk upload any Excel or CSV file to MongoDB |
POST | /upload_occupancy | ETL upload — parses Occupancy Excel into Cities/Buildings/Apartments |
POST | /add_city | Insert a single city record into the cities collection |
POST | /add_property | Insert a single record into the database |
| Method | Endpoint | Description |
|---|---|---|
GET | /admin | Serve the Admin Dashboard HTML page |
GET | /api/collections | List all MongoDB collection names |
GET | /api/data/<collection> | Paginated, searchable data from a collection |
POST | /api/update/<collection>/<doc_id> | Update a single document by _id |
GET | /api/stats | Aggregated stats for KPI cards and charts |
GET | /download_csv?collection=<name> | Export any collection as a downloadable CSV |
/api/data/<collection> Query Parameters| Param | Type | Default | Description |
|---|---|---|---|
page | int | 1 | Page number |
limit | int | 50 | Records per page (9999 = load all) |
search | string | "" | Case-insensitive search across all string fields |
The project is pre-configured for Render via render.yaml.
Push to GitHub
Create a Render Account at render.com
New Web Service → Connect your GitHub repo deba2k5/sinhasrealty
Render will auto-detect render.yaml. Confirm these settings:
pip install -r requirements.txtgunicorn app:appAdd Environment Variable in the Render dashboard:
MONGO_URIClick "Deploy" — your app will be live at:
https://sinhasgmbh.onrender.com
| Field | Type | Description |
|---|---|---|
Apartment Address | String | Street name of the apartment |
City | String | City name |
Floor | Number | Floor number |
POSITION | String | Unit position (Left / Right / Center) |
Apartment SQMT | Number | Apartment size in square meters |
NO OF ROOMS | Number | Number of rooms (e.g. 3.5) |
AWN NO | Number | Internal AWN reference number |
INDIV / SHR | String | Occupancy type (Family / Sharing / Individual) |
Status | String | Occupancy status (OCCUPIED / AVAILABLE) |
Debangshu — github.com/deba2k5
This project is proprietary software developed for Sinhas GmbH. All rights reserved.