@ryziz-shopify/ryziz
v1.0.10
Published
Build Shopify apps on Firebase with file-based routing.
Downloads
4
Readme
Ryziz
Build Shopify apps on Firebase with file-based routing.
Quick Start
npx @ryziz-shopify/ryziz@latest init # Create new project
npm run link # Link to your Shopify app
npm run dev # Start development server
npm run deploy # Deploy to productionDevelopment server runs on localhost with Firebase emulators and Cloudflare tunnel for HTTPS.
File-Based Routing
Name your files, get your routes:
Frontend
page.index.jsx → / (public page)
page.about.jsx → /about (public page)
app.index.jsx → /app (embedded app)
app.settings.jsx → /app/settings (embedded app)
app.items.$id.jsx → /app/items/:id (dynamic route)Backend
api.hello.js → /api/hello (API endpoint)
api.items.$id.js → /api/items/:id (dynamic API)
webhooks.orders-create.js → auto-registered (webhook handler)Explore Demo
Run npm run dev to see working examples:
- Full page layouts - Homepage, index table, details page, settings
- 15+ UI patterns - Polaris components ready to copy
- Live code - See routing, App Bridge, and Firestore in action
All demo files are in src/ and can be deleted when you're ready to build your app.
Demo Files You'll Get
Frontend Pages
- Welcome page with navigation to all demos
- Complete page layouts (homepage, index table, details, settings)
- Pattern viewer with dynamic routing
- Reusable UI component examples (15+ patterns)
Backend APIs
- Simple API endpoint example
- Demo API with Shopify GraphQL and Firestore integration
Webhooks
- App lifecycle webhooks (uninstall)
- GDPR compliance webhooks (data requests, redaction)
Cleanup Instructions
When ready to build your app, delete demo files:
app.demo.*files - Demo pages and patternsapi.demo.js- Demo APIpatterns/directory - UI pattern examples
Keep the GDPR webhooks and core structure files.
Project Structure
src/ Your route files (pages, APIs, webhooks)
public/ Static assets and HTML templates
shopify.app.toml Shopify app config
.firebaserc Firebase project IDFeatures
- File-based routing - Name your file, get your route
- Shopify OAuth - Authentication handled for you
- App Bridge - Full Shopify Admin API access
- Polaris Components - TypeScript autocomplete built-in
- Firebase - Functions, Hosting, Firestore included
- Hot reload - See changes instantly
- Zero config - Works out of the box
Commands
npm run dev - Start dev server with hot reload
npm run link - Connect to your Shopify Partner app
npm run deploy - Deploy to Firebase and Shopify
Learn More
All example files include comments showing:
- How to use Polaris Web Components
- How to call App Bridge APIs
- How to read/write Firestore data
- How to handle forms
- How to create dynamic routes
- How to query Shopify GraphQL
Start exploring src/ after running npm run dev.
