{"id":21681245,"url":"https://github.com/g0v/jothon-net","last_synced_at":"2025-04-12T06:37:17.339Z","repository":{"id":38539922,"uuid":"112207161","full_name":"g0v/jothon-net","owner":"g0v","description":"揪松網 - 零時政府黑客松入口網站","archived":false,"fork":false,"pushed_at":"2024-09-09T07:47:58.000Z","size":72419,"stargazers_count":11,"open_issues_count":15,"forks_count":11,"subscribers_count":35,"default_branch":"master","last_synced_at":"2024-09-10T05:11:00.898Z","etag":null,"topics":["activity","g0v","hackathon","jothon","landing-page"],"latest_commit_sha":null,"homepage":"https://hack.g0v.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}},"created_at":"2017-11-27T14:35:22.000Z","updated_at":"2024-09-09T07:48:01.000Z","dependencies_parsed_at":"2024-10-25T17:56:46.947Z","dependency_job_id":null,"html_url":"https://github.com/g0v/jothon-net","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Fjothon-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Fjothon-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Fjothon-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0v%2Fjothon-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g0v","download_url":"https://codeload.github.com/g0v/jothon-net/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530566,"owners_count":21119590,"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":["activity","g0v","hackathon","jothon","landing-page"],"created_at":"2024-11-25T15:27:11.484Z","updated_at":"2025-04-12T06:37:17.329Z","avatar_url":"https://github.com/g0v.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jothon-net\n===========\n\n揪松網 2.0。 https://jothon.g0v.tw/\n\n改進部份\n-----------\n\n * 資訊架構重新規畫\n * 更清楚具體的黑客松介紹\n * 內容與網站抽離\n * 登入系統 ( 為了未來的媒合、提案與報名系統做準備 )\n * g0v login ( 建立 g0v 系統生態系 )\n\n\n未來規劃\n-----------\n\n * Marketing\n   * i18n ( 讓國外看見 )\n   * 自動化 g0v 資訊收集與視覺化 ( 成果展示 / 募資與贊助 / 行銷與推廣 )\n * Community / Retention\n   * 一鍵分支大松 - 開松工具包 ( 加速專案多中心化 )\n   * 提案系統 - Project Hub ( 完善提案資訊匯整並合併 g0v 獎助金 / 大松提案 / 線下提案 )\n   * 人物誌 - People Hub ( 提升媒合效率, 平台黏著度 )\n   * 坑主真經 ( 協助坑主管理專案的工具與手冊 )\n * Acquisition\n   * 新參者分類帽 - 給新手的遊戲化指南書 ( 降低進入門檻 )\n   * 報名系統 ( 提升平台黏著度 )\n\n\nUsage\n-----------\n\n網站使用 `nodejs` 搭配 `jade`, `stylus`, `livescript` 產生靜態頁面，需先安裝 `nodejs`，並確定 `nodejs` 的版本至少在 `7.6.0` 以上。版本檢驗方式：\n\n```bash\n$ node --version\n```\n\n\n接著，請執行：\n\n```bash\n$ npm i\n$ cp secret-default.ls secret.ls\n$ ./node_modules/.bin/lsc server.ls\n```\n\n以上為舊版，目前將登入與驗證暫時移除，僅留下靜態網頁部份\n\n```bash\n$ npm i\n$ npm run build\n$ npm start\n```\n\n然後使用瀏覽器開啟 [http://localhost:3000/](http://localhost:3000/).\n\n\n如何更新揪松網大松訊息\n------------\n\n### Update Files\n\n1. Modify the data for the \u003ccode\u003en\u003csup\u003eth\u003c/sup\u003e\u003c/code\u003e Hackathon:\n\n   ```bash\n   jothon-net/data/featuring.yaml\t# 修改成第 N 次黑客松資料\n   ```\n\n2. Add new files:\n\n   ```bash\n   jothon-net/data/events/OO.yaml  # 第 N 次黑客松資料\n   jothon-net/static/assets/img/events/OO.jpg  # 上傳第 N 次黑客松主圖 (16:9 建議 1920 x 1080), 只吃 .jpg 檔\n   ```\n\n### Rebuild and Start\n\n1. Rebuild the project:\n\n   ```bash\n   $ npm run build\n   $ npm start\n   ```\n\n### Commit and Deploy\n\n1. Commit your changes and deploy:\n\n   ```bash\n   $ git add .\n   $ git commit -m \"Update nth Hackathon data\"\n   $ ./deploy\n   ```\n\nConfiguration for Production\n------------\n\n1. **Install NodeJS**\n   - Version \u003e= `9.2.1`\n\n2. **Install PostgreSQL**\n   - Version \u003e= `9.6.0`\n\n3. **Create Database and User**\n   ```sql\n   CREATE DATABASE jothon;\n   CREATE USER jothon WITH SUPERUSER;\n   ```\n\n4. **Clone Repository**\n   ```bash\n   $ git clone https://github.com/g0v/jothon-net/\n   $ cd jothon-net\n   ```\n5. **Install Dependencies**\n   ```bash\n   $ npm install\n   ```\n\n6. **Configure Secrets**\n   - Copy `secret-default.ls` to `secret.ls`\n   - Set `usedb = true`\n   - Setup PostgreSQL URI in `io-pg`\n\n7. **Configure Site**\n   - Edit `config/site/default.ls`\n   - Set `domain` to your desired domain\n\n8. **Configure Nginx**\n   - Copy `config/nginx/sample.nginx` to `config/nginx/production.nginx`\n   - Update `server_name` to your desired host\n   - Set `project-root` to your repo location\n\n9. **Generate OpenID-Connect Keys**\n   ```bash\n   $ lsc tools/openid-keygen\n   $ mv keystore.json config/keys/openid-keystore.json\n   ```\n\n10. **Start Server**\n    ```bash\n    $ lsc server\n    ```\n\n11. **(Optional) Configure SSL**\n    - Prepare a temporary Nginx config and run Certbot:\n\n      ```bash\n      $ sudo certbot certonly --webroot -w [temp-webroot-dir] -d [domain-name]\n      ```\n    - Update production Nginx config to use SSL:\n\n      ```nginx\n      listen 443;\n      ssl on;\n      ssl_certificate /path/to/your/fullchain.pem;\n      ssl_certificate_key /path/to/your/privatekey.pem;\n      ```\n\n\nLICENSE\n-----------\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg0v%2Fjothon-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg0v%2Fjothon-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg0v%2Fjothon-net/lists"}