{"id":15142638,"url":"https://github.com/jimmymckegger/b2bheadless","last_synced_at":"2026-02-05T04:33:58.747Z","repository":{"id":257615098,"uuid":"855735129","full_name":"JimmyMcKegger/b2bHeadless","owner":"JimmyMcKegger","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-07T08:26:40.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T04:42:19.656Z","etag":null,"topics":["customer-api","fastapi","headless","shopify"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JimmyMcKegger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-11T11:35:02.000Z","updated_at":"2024-09-28T17:01:24.000Z","dependencies_parsed_at":"2024-09-17T19:19:20.235Z","dependency_job_id":"e37fc0a1-942e-4699-b8c0-09200d2aa38f","html_url":"https://github.com/JimmyMcKegger/b2bHeadless","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"69ec605d3df4b9f615d8b7b6cbbd3c8dfdb14a86"},"previous_names":["jimmymckegger/shopify-customer-accounts","jimmymckegger/b2bheadless"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyMcKegger%2Fb2bHeadless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyMcKegger%2Fb2bHeadless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyMcKegger%2Fb2bHeadless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimmyMcKegger%2Fb2bHeadless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JimmyMcKegger","download_url":"https://codeload.github.com/JimmyMcKegger/b2bHeadless/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246368670,"owners_count":20766061,"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":["customer-api","fastapi","headless","shopify"],"created_at":"2024-09-26T09:43:13.160Z","updated_at":"2026-02-05T04:33:58.713Z","avatar_url":"https://github.com/JimmyMcKegger.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Headless B2B site using Shopify Customer Accounts\n\nThis project is still a work in progress. It is intenedd to become a B2B site built with FastAPI application that integrates with Shopify's Customer Accounts API using a confidential client. Follow the instructions below to clone the repository, install dependencies, and run the application.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- [Python 3.12](https://www.python.org/downloads/)\n- [Poetry](https://python-poetry.org/docs/#installation)\n- [Ngrok](https://ngrok.com/download)\n- Shopify Plus store with a Headless sales channel setup to use a Confdential customer accounts client\n\n## Getting Started\n\n### 1. Clone the Repository\n\nFirst, clone the repository to your local machine:\n\n```bash\ngit clone https://github.com/JimmyMckegger/b2bHeadless.git\ncd customerAccounts\n```\n\n### 2. Install Dependencies\n```\npoetry install\n```\n\n### 3. Start Ngrok\n\n```bash\nngrok http 8000\n```\n\n### 4. Set Environment Variables\n\nReplace th values in the `.env.example` file and rename the file to `.env`\n\n```env\nSHOP_ID=123123123\nCLIENT_ID=shp_asdf234asdf123sadf123\nCLIENT_SECRET=3c50fsadfkljhsadfkljhasdfkjhd\nDOMAIN=your-ngrok-domain.ngrok-free.app\n```\n\n### 5. Run the Application\n\n```bash\npoetry shell \u0026\u0026 uvicorn main:app --reload\n```\n\n### 6. Optionally add an executable script in your PATH to startup the app:\n\nExample script:\n```\n#!/bin/zsh\n\nnew tmux session and detach\nSESSION=\"customer_accounts_api\"\ntmux new-session -d -s $SESSION\n\n# Split the window into two panes vertically\ntmux split-window -v\n\n# Select pane 0, navigate to the project directory, and start ngrok\ntmux select-pane -t 0\ntmux send-keys -t $SESSION \"cd ~/path/to/project/b2bHeadless\" C-m\ntmux send-keys -t $SESSION \"ngrok http 8000 --domain=your-domain.ngrok-free.app\" C-m\n\n# Select pane 1, navigate to the project directory, and start uvicorn\ntmux select-pane -t 1\ntmux send-keys -t $SESSION \"cd ~/path/to/project/b2bHeadless\" C-m\ntmux send-keys -t $SESSION \"poetry run uvicorn main:app --reload\" C-m\n\n# Attach to the tmux session\ntmux attach-session -t $SESSION\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimmymckegger%2Fb2bheadless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimmymckegger%2Fb2bheadless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimmymckegger%2Fb2bheadless/lists"}