39 lines
688 B
Markdown
39 lines
688 B
Markdown
# Shopity
|
|
|
|
Ecommerce template using 11ty, knockout, stripe, docker
|
|
|
|
## Setting shipping rates data
|
|
|
|
- **zips-to-zones:** [USPS Zone chart by zip code](https://postcalc.usps.com/DomesticZoneChart)
|
|
- **usps-shipping-rates:** [USPS Rates by zone/weight](https://pe.usps.com/text/dmm300/Notice123.htm#_c078)
|
|
|
|
## Website and API
|
|
|
|
```
|
|
docker-compose up
|
|
```
|
|
|
|
## Stripe hook
|
|
|
|
Runs on `HOOK_PORT`.
|
|
|
|
```
|
|
npm install
|
|
npm run stripe-webhook
|
|
```
|
|
|
|
`/etc/systemd/system/www-stripe-hook.service`
|
|
|
|
```
|
|
[Unit]
|
|
Description=Stripe webhook
|
|
Documentation=
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
WorkingDirectory=/usr/local/src/mysite
|
|
ExecStart=npm run stripe-webhook.js
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
``` |