{"id":30028670,"url":"https://github.com/jaredcat/bodega-cat","last_synced_at":"2025-10-30T13:13:43.429Z","repository":{"id":307000536,"uuid":"1027533470","full_name":"jaredcat/bodega-cat","owner":"jaredcat","description":"A zero cost, serverless shop.","archived":false,"fork":false,"pushed_at":"2025-09-10T03:40:23.000Z","size":524,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-05T07:58:52.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredcat.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-28T06:45:51.000Z","updated_at":"2025-07-28T22:06:40.000Z","dependencies_parsed_at":"2025-07-28T23:23:24.782Z","dependency_job_id":"1af5f6bb-512d-4144-a775-02793cc81e71","html_url":"https://github.com/jaredcat/bodega-cat","commit_stats":null,"previous_names":["jaredcat/bodega-cat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaredcat/bodega-cat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredcat%2Fbodega-cat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredcat%2Fbodega-cat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredcat%2Fbodega-cat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredcat%2Fbodega-cat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredcat","download_url":"https://codeload.github.com/jaredcat/bodega-cat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredcat%2Fbodega-cat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281811618,"owners_count":26565776,"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-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2025-08-06T15:53:08.659Z","updated_at":"2025-10-30T13:13:43.404Z","avatar_url":"https://github.com/jaredcat.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bodega Cat 🐱\n\nA simple, fast, and configurable e-commerce store built with Astro. Perfect for artists, creators, and small businesses who want a beautiful online store without the complexity.\n\n## Features\n\n- 🚀 **Static Generation** - Fast, SEO-friendly pages that load instantly\n- 🎨 **Configurable Themes** - Easy customization of colors, fonts, and branding\n- 📦 **Product Variations** - Support for size, color, material, and custom options\n- 💳 **Stripe Integration** - Secure payments with Stripe Checkout\n- 🔧 **Admin Interface** - Easy product management through Stripe Dashboard\n- 📱 **Responsive Design** - Works perfectly on all devices\n- 🎯 **SEO Optimized** - Built-in meta tags and structured data\n- ⚡ **Cloudflare Ready** - Deploy to Cloudflare Pages for free\n\n## Quick Start\n\n### Prerequisites\n\n- Node.js 18+\n- A Stripe account\n- A Cloudflare account (for deployment)\n\n### Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone \u003cyour-repo-url\u003e\n   cd bodegacat-astro\n   ```\n\n2. **Install dependencies**\n\n   ```bash\n   npm install\n   ```\n\n3. **Set up environment variables**\n   Create a `.env` file in the root directory:\n\n   ```env\n   STRIPE_SECRET_KEY=sk_test_...\n   STRIPE_PUBLISHABLE_KEY=pk_test_...\n   STRIPE_WEBHOOK_SECRET=whsec_...\n   SITE_NAME=\"Your Store Name\"\n   SITE_DESCRIPTION=\"Your store description\"\n   ```\n\n4. **Start the development server**\n\n   ```bash\n   npm run dev\n   ```\n\n5. **Open your browser**\n   Navigate to `http://localhost:4321`\n\n## Configuration\n\n### Site Configuration\n\nEdit `src/config/site.ts` to customize your store:\n\n```typescript\nexport const defaultSiteConfig: SiteConfig = {\n  name: \"Your Store Name\",\n  description: \"Your store description\",\n  logo: \"/logo.png\",\n  favicon: \"/favicon.ico\",\n  theme: defaultTheme,\n  productTypes: defaultProductTypes,\n  stripe: {\n    publishableKey: import.meta.env.STRIPE_PUBLISHABLE_KEY ?? \"\",\n    webhookSecret: import.meta.env.STRIPE_WEBHOOK_SECRET ?? \"\",\n  },\n};\n```\n\n### Theme Customization\n\nThemes are defined in `src/config/site.ts`. You can customize:\n\n- **Colors**: Primary, secondary, accent, background, surface, text colors\n- **Fonts**: Heading and body font families\n- **Spacing**: Consistent spacing scale\n- **Border Radius**: Corner rounding\n\n```typescript\nexport const customTheme: ThemeConfig = {\n  name: \"custom\",\n  colors: {\n    primary: \"#FF6B6B\",\n    secondary: \"#4ECDC4\",\n    accent: \"#45B7D1\",\n    background: \"#FFFFFF\",\n    surface: \"#F8F9FA\",\n    text: \"#2C3E50\",\n    textSecondary: \"#7F8C8D\",\n  },\n  fonts: {\n    heading: \"Poppins, sans-serif\",\n    body: \"Inter, sans-serif\",\n  },\n  borderRadius: \"0.75rem\",\n  spacing: {\n    xs: \"0.25rem\",\n    sm: \"0.5rem\",\n    md: \"1rem\",\n    lg: \"1.5rem\",\n    xl: \"2rem\",\n  },\n};\n```\n\n### Product Types\n\nDefine your product types and variations in `src/config/site.ts`:\n\n```typescript\nexport const customProductTypes: ProductType[] = [\n  {\n    id: \"t-shirts\",\n    name: \"T-Shirts\",\n    description: \"Comfortable cotton t-shirts\",\n    variations: [\n      {\n        id: \"size\",\n        name: \"Size\",\n        type: \"select\",\n        required: true,\n        options: [\n          { id: \"s\", name: \"Small\", priceModifier: 0, enabled: true },\n          { id: \"m\", name: \"Medium\", priceModifier: 0, enabled: true },\n          { id: \"l\", name: \"Large\", priceModifier: 0, enabled: true },\n          { id: \"xl\", name: \"X-Large\", priceModifier: 2, enabled: true },\n        ],\n      },\n      {\n        id: \"color\",\n        name: \"Color\",\n        type: \"select\",\n        required: true,\n        options: [\n          { id: \"black\", name: \"Black\", priceModifier: 0, enabled: true },\n          { id: \"white\", name: \"White\", priceModifier: 0, enabled: true },\n          { id: \"navy\", name: \"Navy\", priceModifier: 1, enabled: true },\n        ],\n      },\n    ],\n  },\n];\n```\n\n## Product Management\n\n### Adding Products\n\n1. **Create products in Stripe Dashboard**\n   - Go to your Stripe Dashboard\n   - Navigate to Products\n   - Create a new product\n   - Add the following metadata:\n     - `bodegacat_active`: `true`\n     - `productTypeId`: The ID of your product type (e.g., `t-shirts`)\n     - `slug`: URL-friendly product name (e.g., `my-awesome-shirt`)\n     - `category`: Product category\n     - `brand`: Product brand\n     - `tags`: JSON array of tags (e.g., `[\"summer\", \"casual\"]`)\n\n2. **Set up pricing**\n   - Create a price for your product\n   - Set the base price\n   - Variations will be calculated automatically\n\n### Product Images\n\n- Upload product images in Stripe\n- Images will automatically appear on your store\n- First image becomes the main product image\n\n## Deployment\n\n### Cloudflare Pages (Recommended)\n\n1. **Connect your repository**\n   - Go to Cloudflare Pages\n   - Connect your GitHub repository\n   - Set build settings:\n     - Build command: `npm run build`\n     - Build output directory: `dist`\n\n2. **Set environment variables**\n   - Add your environment variables in Cloudflare Pages settings\n   - Make sure to use production Stripe keys\n\n3. **Deploy**\n   - Push to your main branch\n   - Cloudflare will automatically build and deploy\n\n### Other Platforms\n\nBodega Cat works with any static hosting platform:\n\n- Netlify\n- Vercel\n- GitHub Pages\n- AWS S3 + CloudFront\n\n## Stripe Webhooks\n\nSet up webhooks in your Stripe Dashboard:\n\n1. **Go to Stripe Dashboard \u003e Webhooks**\n2. **Add endpoint**: `https://yourdomain.com/api/stripe-webhook`\n3. **Select events**:\n   - `product.created`\n   - `product.updated`\n   - `product.deleted`\n   - `price.created`\n   - `price.updated`\n   - `price.deleted`\n   - `checkout.session.completed`\n\n## Development\n\n### Project Structure\n\n```\nsrc/\n├── components/          # React components\n├── config/             # Site configuration\n├── layouts/            # Astro layouts\n├── lib/                # Utility functions\n├── pages/              # Astro pages\n├── styles/             # Global styles\n└── types/              # TypeScript types\n```\n\n### Available Scripts\n\n- `npm run dev` - Start development server\n- `npm run build` - Build for production\n- `npm run preview` - Preview production build\n- `npm run lint` - Run ESLint\n\n### Adding New Features\n\n1. **New Components**: Add React components in `src/components/`\n2. **New Pages**: Add Astro pages in `src/pages/`\n3. **New Types**: Add TypeScript types in `src/types/`\n4. **New Styles**: Add CSS in `src/styles/`\n\n## Customization\n\n### Adding Custom Pages\n\nCreate new pages in `src/pages/`:\n\n```astro\n---\nimport Layout from \"../layouts/Layout.astro\";\nimport Navbar from \"../components/Navbar\";\nimport { getSiteConfig } from \"../config/site\";\n\nconst siteConfig = getSiteConfig();\n---\n\n\u003cLayout title=\"About Us\"\u003e\n  \u003cNavbar siteConfig={siteConfig} client:load /\u003e\n\n  \u003cdiv class=\"mx-auto max-w-4xl px-4 py-8\"\u003e\n    \u003ch1\u003eAbout Us\u003c/h1\u003e\n    \u003cp\u003eYour content here...\u003c/p\u003e\n  \u003c/div\u003e\n\u003c/Layout\u003e\n```\n\n### Adding Custom Components\n\nCreate React components in `src/components/`:\n\n```tsx\nimport React from \"react\";\n\ninterface MyComponentProps {\n  title: string;\n}\n\nexport default function MyComponent({ title }: MyComponentProps) {\n  return (\n    \u003cdiv className=\"my-component\"\u003e\n      \u003ch2\u003e{title}\u003c/h2\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n## Support\n\n- **Documentation**: Check the code comments for detailed explanations\n- **Issues**: Report bugs and feature requests on GitHub\n- **Community**: Join our Discord for help and discussions\n\n## License\n\nMIT License - see LICENSE file for details.\n\n---\n\nBuilt with ❤️ using [Astro](https://astro.build) and [Stripe](https://stripe.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredcat%2Fbodega-cat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredcat%2Fbodega-cat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredcat%2Fbodega-cat/lists"}