npm.io
16.1.340 • Published 3 months agoCLI

@ctx-core/etsy_cache

Licence
Version
16.1.340
Deps
3
Size
30 kB
Vulns
0
Weekly
0
Stars
1

@ctx-core/etsy_cache

Caches the listings in a Etsy Store to S3.

Also contains a Etsy_Store component to browse through store & to purchase a listing through Etsy.

Usage

cache-etsy.js

npm install @ctx-core/etsy_cache
cache-etsy.js
Etsy_Store
<script>
	import Etsy_Store from '@ctx-core/etsy_cache/Etsy_Store.svelte'
</script>

<Etsy_Store></Etsy_Store>

<style lang="scss">
	@import "~@ctx-core/etsy_cache/Etsy_Store";
	@import "your-css/variables";
	@include Etsy_Store($min-width__multi_column: $width__desktop-max);
</style>

Environment Variables

ETSY_API_KEY

ETSY_API_SECRET

ETSY_STORE_ID

ETSY_LISTING_A_KEY - S3 Key for the json file containing the Array of Listings

ETSY_LISTING_IMAGE_A_KEY - S3 Key for the json file containing the Array of images for the listings