{"id":16812227,"url":"https://github.com/flet/mixcoffee","last_synced_at":"2025-04-05T09:23:35.083Z","repository":{"id":66056018,"uuid":"67531820","full_name":"Flet/mixcoffee","owner":"Flet","description":":coffee: Dashboard and API for tracking coffee fund via google spreadsheet","archived":false,"fork":false,"pushed_at":"2017-09-13T18:59:42.000Z","size":14,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T20:40:09.231Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Flet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2016-09-06T17:37:19.000Z","updated_at":"2019-01-08T10:20:41.000Z","dependencies_parsed_at":"2023-03-13T20:30:59.634Z","dependency_job_id":null,"html_url":"https://github.com/Flet/mixcoffee","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/Flet%2Fmixcoffee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fmixcoffee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fmixcoffee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fmixcoffee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flet","download_url":"https://codeload.github.com/Flet/mixcoffee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247313651,"owners_count":20918672,"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":[],"created_at":"2024-10-13T10:21:07.603Z","updated_at":"2025-04-05T09:23:35.060Z","avatar_url":"https://github.com/Flet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mixcoffee\n\nDashboard and API for our friendly neighborhood coffee fund.\n\n## Install\n\n```\nnpm Install\n```\n\n## Usage\n\n- the app expects the environment variable **GOOGLE_SPREADSHEET_ID**, which should be the ID of publishd Spreadsheet\n  - generate this id by going to **File** \u003e **Publish to the web...**\n  - the ID will be part of the URL shown:\n  - https://docs.google.com/spreadsheets/d/**id-will-be-here**/pubhtml\n\n```bash\n# specify the env var at startup\nGOOGLE_SPREADSHEEET_ID=my-spreadsheet-id npm start\n```\n\nOnce the app is up and running, just add values to the spreadsheet via Google Docs and they will be pulled in automatically!\n\n## Google Spreadsheet format\nThe app expects these columns:\n\n| Day       |\tContributor |\tAmount  | Comment                                       | image                                    | Balance |\n| --------- | ----------- | ------- | --------------------------------------------- | ---------------------------------------- | ------- |\n| 1/4/2016  | Dan\t        | $10.00  |\t\t\t\t\t                                      |                                          |  $10.00 |\n| 1/5/2016  | Steve\t      | $10.00  |\t\t\t\t\t                                      |                                          |  $20.00 |\n| 1/5/2016\t| COFFEE\t    | -$17.50 |\tGreenway Gedeb Chelbessa Yirgacheffe Ethiopia\t|                                          |   $3.50 |\n| 1/8/2016\t| COFFEE\t    | -$17.50\t| Crema - Finca Dragon Red Honey Costa Rica   \t|\thttp://example.com/some-coffee-image.jpg | -$14.00 |\n| 1/8/2016  | Flet        | $10.00  |                                               |                                          |  -$4.00 |\n\n- entries should be in chronological order with the most recent at the bottom\n- Contributor names should be consistent so they can be rolled up\n- to record new coffee, contributor should be COFFEE and amount should be a negative value\n- the Balance value should be the total of all previous fields so the bottom row's balance reflects the current balance\n\n\n## Deploying\n\n### Deploying to Glitch\n[glitch.com](https://glitch.com) is a great place to host an instance of this project.\n\nHere are the steps:\n- Create a new project\n- Click the project name in the top left and choose Advanced Options\n- Click \"Grant access to import and export to a repo\" and go through the steps to link your GitHub account\n- Once thats done, click the \"Import from Github\" button\n- In the text prompt, type **Flet/mixcoffee**\n- Once the project is imported, click on the **env** file on the left\n- Add this entry:\n```bash\nGOOGLE_SPREADSHEET_ID=put-your-spreadsheet-id-here\n```\n- Thats it! Click \"Show Live\" to visit the site\n\nTo update to the latest code version, just re-import the same project again. The `env` file will be retained between imports, so there is no need to update it again.\n\n\n### Deploying to Now\nThis project has built in scripts for [now.sh](https://zeit.co/now) deployment. The deploy script assumes there is a `now secret` called `@coffee-spreadsheet-url`.\n\nRun these commands one time to setup the secret:\n```bash\nnow secrets add coffee-spreadsheet-id \"my-coffee-spreadsheet-id\"\n```\n\nNow that the secret is set, we can run the `package.json` script to redeploy\n```bash\nnpm run deploy\n```\n\nOnce the deploy is done and looks good, update the `now alias` to update production:\n\n```bash\nnow alias set https://mixcoffee-qwertyuiop.now.sh coffeefund.now.sh\n```\n\n## License\n\n[ISC](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflet%2Fmixcoffee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflet%2Fmixcoffee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflet%2Fmixcoffee/lists"}