Skip to content

vuics/selfdev-api

Repository files navigation

Selfdev-api

An API backend server for HyperAgency.

Install

npm i

Configure

Configure environment variables in ./env using example of ./env.example.

Configure Stripe

You have to create a webhook in a Stripe Dashboard separately for each environment:

  • Stripe Sandbox webhooks. The webhook should be pointing to local address. You can use the listen command in ./package.json to setup local webhook.
  • Stripe live webhooks. The webhook should be pointing to https://api.h9y.ai/v1/subscriptions/webhook.

Select API version: 2020-03-02. Select webhook events to send:

  • invoice.payment_succeeded
  • customer.subscription.deleted

On local dev, you can get the webhook events with stripe CLI tool:

brew install stripe/stripe-cli/stripe
stripe login
npm run listen

See: stripe-cli.

Run

npm start

About

HyperAgency API Server

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE-COMMERCIAL

Stars

Watchers

Forks

Releases

No releases published

Packages