{"id":18211977,"url":"https://github.com/g0v/amis-moedict-new","last_synced_at":"2025-06-27T21:34:17.329Z","repository":{"id":250394360,"uuid":"834014218","full_name":"g0v/amis-moedict-new","owner":"g0v","description":"amis-moedict v2","archived":false,"fork":false,"pushed_at":"2025-06-02T06:55:47.000Z","size":695072,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":40,"default_branch":"main","last_synced_at":"2025-06-02T17:25:38.023Z","etag":null,"topics":["amis","rails","ruby"],"latest_commit_sha":null,"homepage":"https://new-amis.moedict.tw/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/g0v.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-26T08:38:48.000Z","updated_at":"2025-06-02T06:55:51.000Z","dependencies_parsed_at":"2025-01-20T06:25:10.300Z","dependency_job_id":"80cdcdbc-ffda-4769-a6dc-9e54d6eeeedc","html_url":"https://github.com/g0v/amis-moedict-new","commit_stats":{"total_commits":337,"total_committers":1,"mean_commits":337.0,"dds":0.0,"last_synced_commit":"5354e2e0a5584677c17cb86e0c301f30e9789bf8"},"previous_names":["g0v/amis-moedict-new"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/g0v/amis-moedict-new","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Famis-moedict-new","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Famis-moedict-new/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Famis-moedict-new/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Famis-moedict-new/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g0v","download_url":"https://codeload.github.com/g0v/amis-moedict-new/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Famis-moedict-new/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262335247,"owners_count":23295605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amis","rails","ruby"],"created_at":"2024-11-03T15:04:15.256Z","updated_at":"2025-06-27T21:34:13.313Z","avatar_url":"https://github.com/g0v.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 阿美語萌典 2024 開發新版\n\n阿美語萌典團隊的 [hackfoldr 傳送門](https://beta.hackfoldr.org/11BRa7Ftnni8Q1NRdjwS378BgBz832UY4uIr-d0J0YpM)。\n\n舊版程式碼請至 [https://github.com/g0v/amis-moedict](https://github.com/g0v/amis-moedict) 。\n\n## About 'Amis moedict\n\n’Amis/Pangcah Dictionary, an online ’Amis to Chinese / English / French dictionary, was established with the power of citizens to preserve the once considered soon-to-disappear indigenous language.\n\nIn Taiwan, there are 16 different indigenous nations. Though their languages never developed into writing system, detailed records have been made with the efforts of missionaries and cultural heritage inheritors.\n\nThe ’Amis/Pangcah Dictionary is the first example of an digitized, online indigenous language dictionary. We hope that others can develop their own online dictionaries, too.\n\n## Pre-Requirement 環境需求\n\n* homebrew (recommend) or MacPorts\n* [Orb Stack](https://orbstack.dev/) (recommend), [Docker Desktop](https://www.docker.com/products/docker-desktop/) or Docker CLI\n* Docker-compose\n* docker-sync\n* puma-dev\n* mysql-client\n\n### Install homebrew 安裝 homebrew\n\nCheckout https://brew.sh/zh-tw/\n\n    ```shell\n    $ /bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n    ```\n\n### Install Orb Stack\n\nOpen [Orb Stack](https://orbstack.dev/download) to download desktop application.\n\n### puma-dev set local DNS for dev\n\nInstall Puma-dev Server (https + http):\n\n    ```shell\n    $ brew install puma/puma/puma-dev\n    $ sudo puma-dev -setup\n    $ puma-dev -install\n    ```\n\nAfter install puma-dev\n\n    ```shell\n    $ cd ~/.puma-dev\n    $ echo 8889 \u003e ~/.puma-dev/new-amis.moedict\n    ```\n\nImport Cert to Chrome\n\n    ```shell script\n    $ security add-trusted-cert -k login.keychain-db ~/Library/Application\\ Support/io.puma.dev/cert.pem\n    ```\n\nImport Cert to Firefox\n\n    - open about:preferences#privacy \u003e 檢視憑證\n    - 憑證機構 \u003e 匯入 `~/Library/Application\\ Support/io.puma.dev/cert.pem`\n\nIf local browser shows https cert expired, then\n\n    ```shell script\n    $ puma-dev -uninstall\n    $ puma-dev -install\n    ```\n\n### config/master.key\n\nFins us to get this file.\n\n## Docker, run and deploy\n\n### Start docker\n\nRemember to run docker-sync before running docker-compose\n\n```shell\n$ gem i docker-sync\n$ docker-sync start\n```\n\nIf `docker-sync start` return errors, just retry 2-3 times.\n\nAfter docker-sync all success, run docker-compose.\n\n```shell\n$ docker-compose up -d\n```\n\nEnter docker and run `bin/server`.\n\n```shell\n$ docker-compose exec app bash\n$ bin/server # already in docker\n```\n\nOpen browser https://new-amis.moedict.test/ .\n\n### Stop Docker\n\n```shell\n$ docker-compose down\n$ docker-sync stop\n```\n\n### Rebuild Docker or update docker\n\n```shell\n$ docker-compose down\n$ docker-compose up --build -d\n```\n\n### Check production and deploy\n\nEnter docker and run precompile.\n\n```shell\n$ docker-compose exec app bash\n$ bin/precompile # already in docker\n$ bin/server production # already in docker\n```\n\nOpen browser https://new-amis.moedict.test/ and check everything ok.\n\nRemember to commit precompile assets files and then push to middle2.\n\n```shell\n$ git push m2 main:master \u0026\u0026 curl https://new-amis.moedict.tw/up\n```\n\n### When you need a debugger\n\nYou should see those info when starting docker.\n\n```\nDEBUGGER: Debugger can attach via UNIX domain socket (/tmp/rdbg-0/rdbg-NNN)\n```\n\nNNN is a 3-digit number that changes every time.\n\nEnter docker and run rdbg command.\n\n```shell\n$ docker-compose exec app bash\n$ bundle exec rdbg -a rdbg-NNN # already in docker\n```\n\nPlease see https://guides.rubyonrails.org/debugging_rails_applications.html , and https://github.com/ruby/debug for more details.\n\n### If your debugger gets stuck\n\nTry to input `c` to run continuely and then `ctrl+c`, input `q` to exit.\n\nIf still, just run `$ docker-compose restart app`.\n\n## API\n\nv1 format is for legacy version.\n\nv2 format is for 2024 version.\n\nTODO\n\n### API endpoints\n\n### JSON format\n\n## 開發影片紀錄\n\n影片列表：過往 g0v 大小黑客松的提案與成果發表，[YouTube 影片列表](https://www.youtube.com/playlist?list=PLlkbkFcgp8UtgNZbPvCBV-k1Bl6d1HunE)。\n\n## LICENSE 授權\n### 辭典授權\n\n* 蔡中涵阿美語大辭典，由蔡中涵博士 (Safulo Arik Cikatopay) 提供，採用 CC BY-NC-SA 3.0 TW 授權。\n* 方敏英阿美語字典（Virginia Fey 編著），由台灣聖經公會提供紙本，並經由鄉民OCR電子化，採用 CC BY-NC 授權。\n* 博利亞潘世光神父阿美語-法語、阿美語-漢語字典，由天主教巴黎外方會的博利亞神父 (Louis Pourrias)、潘世光神父 (Maurice Poinsot) 提供，採用 CC BY-NC 授權。\n* 原住民族語言線上辭典，由財團法人原住民族語言研究發展基金會授權阿美語萌典網站使用。\n* 學習詞表無版權限制。\n* 以上授權書請見[雲端資料夾](https://drive.google.com/drive/folders/1LChvSXEdMpxv0I4u3JoSRZL-GfiEXKgo?usp=sharing)\n\n### 本站包含下列第三方元件\n\n* jQuery 及 jQuery UI 由 OpenJS Foundation 提供，採用 MIT 授權。\n* Font Awesome Free 字型由 Fonticons, Inc. 提供，Icons 採用 CC BY 4.0 授權，Fonts 採用 SIL OFL 1.1 授權。\n\n### CC0 1.0 公眾領域貢獻宣告\n\n作者 唐鳳、小蟹、Lafin 在法律許可的範圍內，拋棄此著作依著作權法所享有之權利，包括所有相關與鄰接的法律權利，並宣告將該著作貢獻至公眾領域。\n\nhttps://creativecommons.org/publicdomain/zero/1.0/deed.zh-hant\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg0v%2Famis-moedict-new","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg0v%2Famis-moedict-new","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg0v%2Famis-moedict-new/lists"}