ddio Juan
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # COSCUP Volunteer 財務系統開發小抄 ## 資料初始化步驟 為了準備能夠順利開發財務系統的資料,除了一般的系統初始化外,我們也需要設定好專案、組別,以及預算。 在以下步驟中,若在開頭有標注 `user` 的,則代表須使用非財務組帳號的 session 。若無特別標注,或標注 `admin` 的,則代表需使用財務組 chief 的 session。 1. 用 docker compose 執行開發環境 1. 根據[開發文件說明](https://volunteer.coscup.org/docs/dev/build-base-image/),編譯 base image && docker compose up > 如果有發生port 5000問題且為macOS,檢查一下AirPlay Receiver是否關閉,此port跟環境所需要的port會有衝突 > 或是port由"5000:5000"->改為其他port如"8080:8080" 3. 紀錄登入連結,在[開發文件的最後一步](https://volunteer.coscup.org/docs/dev/build-base-image/#create-first-user-account)裡,提到的 `http://localhost/dev/cookie/xxxx` ,記到自己的筆記中 2. 新增專案 1. 在開發者後台 `http://127.0.0.1/dev/` 的下方,點選 `To create a project 2. 可任意選擇 Pid & Name ,並做好紀錄 > 以下以 Pid = `2050` 為例,請自行代換為你指定的 Pid 4. 一個 project === 一屆的 COSCUP ,我們之後將以此專案作為開發測試的標的 3. 新增財務與其他組別 1. 要開發測試財務系統,需要建立財務組(才有管理界面),以及其他組別 x1 (才能測試一般使用者) 2. 打開 project / 編輯組別: `http://127.0.0.1/project/2050/edit/team` 3. 建立財務組 > name = finance, tid = finance, owner = 目前的帳號, chief = 目前的帳號 > 注意 tid 一定要填 `finance` ,否則系統無法辨認 5. 建立其他組別 > 各欄位數值隨喜,記得 chief 填別的帳號 6. `user` 使用其他瀏覽器,或是隱私分頁,並以其他組別的帳號登入 4. 建立預算報表 1. 從[這份 Google 試算表](https://docs.google.com/spreadsheets/d/e/2PACX-1vSeqzTJLbkNwvVANO4vBSJNf5os-5jm5r3D3-ex9Vw4_CDqQKhv0qQOe8A2WjaG-J_Id3Wuo9pK4uAn/pub?gid=0&single=true&output=csv),下載範例預算表 1. 進入預算編輯畫面: `http://127.0.0.1/budget/2050` 3. 點選 `批次上傳預算項目` ,並匯入第一步下載的檔案 5. `user` 建立申請單 1. `user` 進入專案頁面 `http://127.0.0.1/team/2050` 2. `user` 點選左側選單的 `預算列表` ,就能新增預算 ## 開發環境定期更新 1. 當後台系統、套件更新時,請參考[開發文件說明](https://volunteer.coscup.org/docs/dev/build-base-image/) ,重新編譯 coscupweb-base docker image & docker-compose 的所有 image 2. 當開發時間過久,例如超過一個月時,原本建立的帳號會過期,只要重新建立新的 session ,就可以繼續使用囉,原本的 user ID 都會流著,只是更新 session 而已 > docker compose run --rm cmdapp dev user_add ## 推薦記錄下來的頁面連結 你可以將以下連結,替換為系統的實際設定,方便之後開發切換呦~ 以下接以 pid = 2050 為例 1. 開發者登入連結: `http://localhost/dev/cookie/xxxx` 1. 請至少紀錄 `admin` & `user` 兩組登入連結,減少日後查詢的時間 2. 系統管理員: 1. 本次專案的連結: http://localhost/project/2050 2. 編輯組別: http://127.0.0.1/project/2050/edit/team 5. 財務組管理後台: 1. 申請單列表: http://127.0.0.1/team/2050/finance/expense/lists 4. 一般帳號建立申請單: 1. http://127.0.0.1/team/2050 ## 常用頁面、概念說明 ==歡迎認領或共筆== ## 推薦的開發流程 ==歡迎認領或共筆== ## git 使用注意事項 ==歡迎認領或共筆==

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully