Skip to content

Disfactory/Disfactory

Repository files navigation

Disfactory 違章工廠舉報系統

g0v-disfactory-badge Tests

logo

Note

本 Repo 目前是放後端的程式碼 前端的程式碼已經移到 Disfactory/frontend 開發時請 cd 進 backend/ 資料夾。

常用連結

相關專案

Data Source / 資料來源

The initial data of suspected illegal factories on farmland are provided by Ronny Wang via disfactory-crawler from Taiwan Map Service, maintained by Taiwan's National Land Surveying and Mapping Center.

We maintain a copy crawed at 2019/7/20 as old suspected illegal factories on farmland.

系統上的既有違章工廠資料,為 2019/7/20 取自內政部國土測繪雲/農業與農地資源盤查/農地資源盤查_工廠之圖層資料。資料取得之程式碼來自 Ronny Wang 使用 disfactory-crawler

全站由使用者回報之資料及設計圖以CC BY姓名標示4.0釋出,標註「農地違章工廠回報系統貢獻者」。使用者回報資料未涉及個人資訊部分已整理成開放資料與API

Deployment / 部署

One-Click Deployment / 一鍵部署

This repository includes configuration files for easy deployment to cloud platforms:

Render.com

Deploy to Render

The render.yaml file configures:

  • disfactory-backend - Django API server with PostgreSQL
  • disfactory-worker - Background task queue processing
  • disfactory-db - PostgreSQL 14 database with PostGIS

Zeabur

Deploy on Zeabur

The zeabur.yaml file provides a template for deploying the complete Disfactory backend infrastructure including PostgreSQL database, Django API server, and background worker. The template uses pre-built Docker images from GitHub Container Registry that are automatically built on master branch pushes.

Manual Configuration / 手動設定

After deployment, configure these environment variables:

  • GOOGLE_MAP_API_KEY - Required for map functionality
  • DISFACTORY_IMGUR_CLIENT_ID - Required for image upload

部署後需要設定以下環境變數:

  • GOOGLE_MAP_API_KEY - 地圖功能所需
  • DISFACTORY_IMGUR_CLIENT_ID - 圖片上傳功能所需

Packages

 
 
 

Contributors 26

Languages