An open API service indexing awesome lists of open source software.

https://github.com/fartlabs/shop

The FartLabs shop!
https://github.com/fartlabs/shop

denofresh

Last synced: 5 months ago
JSON representation

The FartLabs shop!

Awesome Lists containing this project

README

          

# FartLabs Shop

The [FartLabs](https://fartlabs.org) shop! Built with [Deno](https://deno.land/)
powered by [Shopify](https://www.shopify.com), and deployed to the edge with
[Deno Deploy](https://deno.com/deploy).
[_Learn how you can build an e-commerce site with a perfect Lighthouse score._](https://github.com/denoland/merch)

## Develop

- Clone the repository
- Set up Shopify credentials in the `.env`, follows `.env.example`.
- Start the project in local mode:

```bash
deno task start
```

## Shopify setup

- Create a new account or use an existing one.

- Create a new app. https://\.myshopify.com/admin/settings/apps
- Once your app has been created, select use it. Then select "Storefront API
integration" link
- Next, check Storefront API access scopes
- `unauthenticated_read_product_listings` access should be fine to get you
started.
- Add more scopes if you require additional permissions.

### Shopify troubleshooting

- If you encounter an error like `error code 401` you likely didn't set this up
correctly. Revisit your scopes and be sure add at least one test product. Also
make sure you are using the `Storefront API` and not the `Admin API` as the
endpoints and scopes are different.

---

Built with 💖 [**@FartLabs**](https://github.com/FartLabs)