{"id":39069767,"url":"https://github.com/n30w/andthensome","last_synced_at":"2026-01-17T18:19:45.291Z","repository":{"id":61839627,"uuid":"532448001","full_name":"n30w/andthensome","owner":"n30w","description":"Store Reddit saved posts and comments","archived":false,"fork":false,"pushed_at":"2024-03-29T10:06:59.000Z","size":55163,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2024-06-21T14:03:26.558Z","etag":null,"topics":["go","mysql","planetscale","reddit-api","sql"],"latest_commit_sha":null,"homepage":"","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/n30w.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":"2022-09-04T05:33:45.000Z","updated_at":"2023-02-16T11:24:25.000Z","dependencies_parsed_at":"2023-02-09T19:00:26.169Z","dependency_job_id":"767537ad-5090-4ada-b851-f906c459fc34","html_url":"https://github.com/n30w/andthensome","commit_stats":{"total_commits":158,"total_committers":2,"mean_commits":79.0,"dds":0.03797468354430378,"last_synced_commit":"aa87b16a623318c612d7336910006e627a2ec2ea"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/n30w/andthensome","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n30w%2Fandthensome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n30w%2Fandthensome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n30w%2Fandthensome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n30w%2Fandthensome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n30w","download_url":"https://codeload.github.com/n30w/andthensome/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n30w%2Fandthensome/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28515295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T17:57:59.192Z","status":"ssl_error","status_checked_at":"2026-01-17T17:57:52.527Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["go","mysql","planetscale","reddit-api","sql"],"created_at":"2026-01-17T18:19:40.949Z","updated_at":"2026-01-17T18:19:45.254Z","avatar_url":"https://github.com/n30w.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# And Then Some\n\nReddit only caches 1000 saved posts+comments. This is a problem if you keep saving posts and want to view your oldest ones.\n\nThe name for this project is named \"And Then Some\", because it has the ability to retrieve all your Reddit posts, and then some, because it can retrieve any updates as well.\n\nPushes or merges to master branch will initiate github actions.\n\n## Docker\n\nDocker build command:\n\n```docker build $(pwd) --tag n30w/andthensome:latest --label n30w/andthensome:latest```\n\nDocker run command:\n\n```docker run --env-file=env_vars --publish 4000:4000 andthensome```\n\n## Notes\n\n- Use ```make bin``` to create a binary, or ```make run``` to run it.\n\n### Migration from MySQL\n\nAs of March 29, 2024, I have migrated from Planetscale's MySQL database to NeonDB's Postgresql database. Planetscale had discontinued their free tier on April 8, 2024. I used this guide to migrate to Neon: [Migrate from MySQL to Neon](https://neon.tech/docs/import/migrate-mysql). The guide uses ```pgloader```.\n\nThere's also [this online tool](https://www.sqlines.com/online) that converts MySQL statements to Postgresql ones. Pretty sure one could use ChatGPT as well.\n\n## TODO\n\n- [x] Store reddit credentials in .env file\n- [x] SQL Comparison function\n- [x] Setup webserver\n- [x] Use a docker container for API calls\n- [x] Deletion function for SQL db\n- [ ] Implement Go Routines and channels for faster performance (blazingly fast you could say)\n- [ ] Switch to Taskfile.dev\n- [ ] Benchmark Tests for receiving data\n\n## Links\n\n- [Multiarchitecture Build With GitHub Actions Docker](https://dev.to/cloudx/multi-arch-docker-images-the-easy-way-with-github-actions-4k54)\n- [Docker Building Multi-platform Images](https://docs.docker.com/build/building/multi-platform/)\n- [How to get more JSON Results](https://old.reddit.com/r/redditdev/comments/d7egb/how_to_get_more_json_results_i_get_only_30/)\n- [SQL Go Create Table Insert Row](https://golangbot.com/mysql-create-table-insert-row/)\n- [Go Docker Tutorial](https://tutorialedge.net/golang/go-docker-tutorial/)\n- [SQL Getting Unique Names when IDS are different](https://dba.stackexchange.com/questions/19511/getting-unique-names-when-the-ids-are-different-distinct)\n- [Learn Git Basics](https://nulab.com/learn/software-development/git-tutorial/git-basics/#undoing-changes)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn30w%2Fandthensome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn30w%2Fandthensome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn30w%2Fandthensome/lists"}