{"id":18078245,"url":"https://github.com/imthaghost/bookrating","last_synced_at":"2025-04-05T20:32:17.409Z","repository":{"id":40571213,"uuid":"485643164","full_name":"imthaghost/bookrating","owner":"imthaghost","description":"Gather some interesting information from a CSV file and populate your Notion database","archived":false,"fork":false,"pushed_at":"2022-05-01T22:38:14.000Z","size":2443,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T20:50:58.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/imthaghost.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}},"created_at":"2022-04-26T05:16:00.000Z","updated_at":"2022-09-13T20:49:55.000Z","dependencies_parsed_at":"2022-07-27T08:32:21.734Z","dependency_job_id":null,"html_url":"https://github.com/imthaghost/bookrating","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/imthaghost%2Fbookrating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imthaghost%2Fbookrating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imthaghost%2Fbookrating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imthaghost%2Fbookrating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imthaghost","download_url":"https://codeload.github.com/imthaghost/bookrating/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399680,"owners_count":20932873,"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-31T12:13:16.580Z","updated_at":"2025-04-05T20:32:17.381Z","avatar_url":"https://github.com/imthaghost.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg alt=\"notion\" src=\"/docs/media/notion.png\"\u003e \n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\nHas your book club been recording their favorite data for 10 years and have no way of reading it? Look no further!\nBookrating will ingest a given CSV of book reviews and present it to you in a beautiful format using \u003ca href=\"https://www.notion.so/product\"\u003e Notion \u003c/a\u003e.\n\u003c/p\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n![Example](/docs/media/example.gif)\n\n## Table of Contents\n- [Prerequisites](#pre)\n- [Getting Started](#getting-started)\n    - [Env](#env)\n        - [Env Example](#env-example)\n    - [Install](#install)\n    - [Usage](#usage)\n- [Improvements](#improvements)\n- [Built With](#built-with)\n\n\u003ca name=\"pre\"\u003e\u003c/a\u003e\n## Prerequisites\n\n* [Golang](https://go.dev/doc/install)\n* [Notion Account](https://www.notion.so/)\n* [Notion Integration Key](https://developers.notion.com/docs/getting-started)\n\n\n\u003ca name=\"getting-started\"\u003e\u003c/a\u003e\n## 🚀 Getting Started\n\n\u003ca name=\"env\"\u003e\u003c/a\u003e\n### Environment Variables\nCopy the contents of .env.example and create a .env file from the contents -\nThen, fill in credentials that got when you went through the [Notion Integration Guide](https://developers.notion.com/docs/getting-started).\n```bash\n$ touch .env\n```\n```bash\n$ cp .env.example .env\n```\n\n```bash\n  ├── .env\n  ├── .env.example\n  ├── README.md\n  ├── cmd\n  ...\n```\n\n#### Env Example\n```bash\n# Notion\nNOTION_INTEGRATION_KEY=89032ur3uhr238r923y08r\nNOTION_DATABASE_ID=289yrh3ur3h9082r3y908r\n```\n\n\u003ca name=\"install\"\u003e\u003c/a\u003e\n### Install\n\n```bash\n# go get :)\ngo get github.com/imthaghost/bookrating\n# change to project directory using your GOPATH\ncd $GOPATH/src/github.com/imthaghost/bookrating/cmd/bookrating\n# build and install application\ngo install\n```\n\n\u003ca name=\"examples\"\u003e\u003c/a\u003e\n\n## Examples\n\n```bash\n# bookrating \u003cfile path\u003e\nbookrating data/ratings.csv\n```\n\n![Example](/docs/media/example.gif)\n\n## Usage\n\n```\nUsage:\n  bookrating \u003cfile path\u003e [flags]\n\nFlags:\n  -h, --help                  help for bookrating\n```\n\n\u003ca name=\"improvements\"\u003e\u003c/a\u003e\n\n## Improvements\n\nVisit the \u003cb\u003eNotion\u003c/b\u003e link [here](https://elastic-skunk-667.notion.site/a55d6c450d024cbaac4decef89b677d1?v=e417ba58d2844a7eac579a0e67cdb6ba) to go over improvements that can be made.\n\n## Questions\n- Was there anything you got stuck on, and if so what did you do to resolve it?\n```bash\nHad trouble creating nested maps were interesting had to read alot about them.\n```\n- Do you have any suggestions for improving the API documentation to make it clearer or easier to use?\n```bash\nNope I heavily relied on the documentation hahah.\n```\n## 🔨 Built With\n[go-notion](https://github.com/dstotijn/go-notion) - Go client for the Notion API.\n\n[godotenv](https://github.com/joho/godotenv) - A Go port of Ruby's dotenv library (Loads environment variables from `.env`.)\n\n## 📝 Sources\n[CSV Parsing](https://webdamn.com/how-to-read-csv-file-using-golang/)\n\n[CSV Multithreading](https://medium.com/@mohdgadi52/leveraging-multithreading-to-read-large-files-faster-in-go-cfb9d6a77aeb)\n\n[Notion Docs](https://developers.notion.com/reference/patch-page)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimthaghost%2Fbookrating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimthaghost%2Fbookrating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimthaghost%2Fbookrating/lists"}