{"id":19905544,"url":"https://github.com/ericdbishop/erics-printify-store-backend","last_synced_at":"2025-07-23T21:09:49.327Z","repository":{"id":248435570,"uuid":"822154556","full_name":"ericdbishop/erics-printify-store-backend","owner":"ericdbishop","description":"Eric's Printify Store Backend (Used for erichastourettes.com)","archived":false,"fork":false,"pushed_at":"2024-07-14T20:17:46.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T07:44:15.789Z","etag":null,"topics":["ecommerce","golang","printify","sqlite3","stripe"],"latest_commit_sha":null,"homepage":"https://erichastourettes.com","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/ericdbishop.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":"2024-06-30T12:34:00.000Z","updated_at":"2024-07-14T20:34:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"9aac97d0-b64b-4b0d-b9ba-b0a25280a772","html_url":"https://github.com/ericdbishop/erics-printify-store-backend","commit_stats":null,"previous_names":["ericdbishop/erics-printify-store-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericdbishop/erics-printify-store-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdbishop%2Ferics-printify-store-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdbishop%2Ferics-printify-store-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdbishop%2Ferics-printify-store-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdbishop%2Ferics-printify-store-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericdbishop","download_url":"https://codeload.github.com/ericdbishop/erics-printify-store-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdbishop%2Ferics-printify-store-backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266748765,"owners_count":23978279,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ecommerce","golang","printify","sqlite3","stripe"],"created_at":"2024-11-12T20:33:48.117Z","updated_at":"2025-07-23T21:09:49.290Z","avatar_url":"https://github.com/ericdbishop.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eric's Printify Store Backend\n\nThis is a generic version of the backend API server I wrote for [erichastourettes.com](https://erichastourettes.com) in Golang.\nIt manages\ntasks such as user cart and session handling through an SQLite DB, as well as interfacing with the\nAPIs of Stripe (payment processor) and Printify (print-on-demand service) for\ncheckout and order creation functionality. \nIt has been over a year since I launched the site and I wanted to share the work I put into creating a functional ecommerce platform on the backend.\nI may put some effort into improving this code in the future.\n\nI went through and cleaned up [erichastourettes.com](https://erichastourettes.com) specific references. \nIf you plan to use any of the code, be sure to closely look at how you may need to modify it to fit your own needs.\n\nThe API exposes the following endpoints to the client:\n\n`/api/items`\n\n`/api/retrieve_cart`\n\n`/api/add_to_cart`\n\n`/api/remove_from_cart`\n\n`/api/checkout`\n\nIt requires the following environment variables to be configured within your .env:\n\n`PRINTIFY_API_TOKEN` Your Printify API token\n\n`SHOP_ID` Your printify shop ID number\n\n`STRIPE_SECRET` Your Stripe account secret token\n\n`STRIPE_WEBHOOK_SECRET` Your Stripe webhook secret token\n\n`LOGFILE` Log file name\n\n`CSRF_AUTH_TOKEN` Random CSRF authorization token\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericdbishop%2Ferics-printify-store-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericdbishop%2Ferics-printify-store-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericdbishop%2Ferics-printify-store-backend/lists"}