{"id":16277988,"url":"https://github.com/rpidanny/nietzsche","last_synced_at":"2025-08-20T06:12:23.253Z","repository":{"id":37687107,"uuid":"166302607","full_name":"rpidanny/Nietzsche","owner":"rpidanny","description":"Scrap quotes from Goodreads and schedule random tweets.","archived":false,"fork":false,"pushed_at":"2023-10-15T06:24:43.000Z","size":2597,"stargazers_count":49,"open_issues_count":21,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T08:30:22.065Z","etag":null,"topics":["aws","aws-lambda","cloudformation","goodreads","goodreads-quotes","iac","infrastructure-as-code","nietzsche","quotes","serverless"],"latest_commit_sha":null,"homepage":"https://twitter.com/TolleZitate","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/rpidanny.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":"2019-01-17T21:54:29.000Z","updated_at":"2024-09-21T03:05:04.000Z","dependencies_parsed_at":"2024-10-27T10:51:13.791Z","dependency_job_id":"9781229e-a69f-41e9-9aeb-03583b198fb0","html_url":"https://github.com/rpidanny/Nietzsche","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/rpidanny%2FNietzsche","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpidanny%2FNietzsche/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpidanny%2FNietzsche/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpidanny%2FNietzsche/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rpidanny","download_url":"https://codeload.github.com/rpidanny/Nietzsche/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233502396,"owners_count":18685934,"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":["aws","aws-lambda","cloudformation","goodreads","goodreads-quotes","iac","infrastructure-as-code","nietzsche","quotes","serverless"],"created_at":"2024-10-10T18:56:57.021Z","updated_at":"2025-01-12T00:37:15.040Z","avatar_url":"https://github.com/rpidanny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nietzsche\n\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Frpidanny%2FNietzsche.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Frpidanny%2FNietzsche?ref=badge_shield)\n\nA [Serverless](https://serverless.com) application that fetches quotes from [Goodreads](https://www.goodreads.com/quotes) and saves it to [DynamoDB](https://aws.amazon.com/dynamodb). _(About 88K+ unique quotes)_\n\nIt also includes:\n\n1. Quotes Search API\n2. Tweet Quotes\n\n## Architecture\n\n### High Level Block Diagram\n\n![logo](./architecture.png \"Architecture Diagram\")\n\n### Quote Tweet State Machine\n\n![logo](./statemachine.png \"Architecture Diagram\")\n\n## Requirements\n\n1. [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)\n2. [Serverless](https://serverless.com)\n\n## Setup\n\n1. Get [Twitter API keys](https://developer.twitter.com/en/apps)\n2. `aws ssm put-parameter --name nietzsche-twitter-consumer-secret --type String --value $CONSUMER_SECRET --profile default --overwrite --region eu-west-1`\n3. `aws ssm put-parameter --name nietzsche-twitter-consumer-key --type String --value $CONSUMER_KEY --profile default --overwrite --region eu-west-1`\n4. `aws ssm put-parameter --name nietzsche-twitter-access-token --type String --value $ACCESS_TOKEN --profile default --overwrite --region eu-west-1`\n5. `aws ssm put-parameter --name nietzsche-twitter-access-token-secret --type String --value $ACCESS_TOKEN_SECRET --profile default --overwrite --region eu-west-1`\n6. `npm i`\n\n### Getting Access Token\n\n1. Set `TWITTER_API_KEY` and `TWITTER_API_KEY_SECRET` in your environment variable.\n2. Run `node scripts/get-access-token.js`\n\n## Deploy\n\n`npm run deploy`\n\n## Invoke\n\n### Start Quotes Scrapping Job\n\n`serverless invoke -f dispatchScrappers --stage prod`\n\n### Tweet Random Quote\n\n`serverless invoke stepf --name tweetQuoteStateMachine --stage prod`\n\n## Contribute\n\nHelp make this app better and future proof.\n\n- Clone the code\n- Install the dependencies with `npm install`\n- Create a feature branch `git checkout -b new_feature`\n- Lint with standard `npm run lint`\n\n## License\n\nThis software is released under the MIT license. See [the license file](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpidanny%2Fnietzsche","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frpidanny%2Fnietzsche","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpidanny%2Fnietzsche/lists"}