This is a starter for Gridsome using BagelDB
Here's a live Demo🍺
🥯 new around here? get started with BagelDB docs 🥯
Get started with BagelDB and create your collections, here is the DB structure used
| Field Name | Slug | Type | Options |
|---|---|---|---|
| Title | title | PlainText | primary:true |
| Image | image | Image | |
| Price | price | Number | |
| Description | description | RichText | |
| Categories | categories | Reference | ref:categories |
| Slug | slug | PlainText |
| Field Name | Slug | Type | Options |
|---|---|---|---|
| Title | title | PlainText | primary:true |
| Field Name | Slug | Type | Options |
|---|---|---|---|
| PlainText | primary:true | ||
| Name | name | PlainText | |
| Address | address | RichText | |
| Products | products | NestedCollection |
Nested under Orders
| Field Name | Slug | Type | Options |
|---|---|---|---|
| Product Title | productTitle | PlainText | primary:true |
| Price | price | Number | |
| Product | product | Reference | ref:products |
| Field Name | Slug | Type | Options |
|---|---|---|---|
| PlainText | primary:true | ||
| Name | name | PlainText |
save tokens as environment variables .env
BAGEL_TOKENwith power read access to all collectionsGRIDSOME_POST_TOKENwith write access only to: Newsletter Signups and Orders
npm install --global @gridsome/cli
npm ito install the dependanciesgridsome developto start a local dev server- Happy coding 🎉🙌