Sign inSign up

nhost/stripe-graphql

By nhost

•Updated about 5 years ago

Image
0

1.0K

nhost/stripe-graphql repository overview

⁠Stripe GraphQL

An open-source Stripe GraphQL integration with Nhost. Add Stripe to your app with just a couple clicks and use the Stripe API through the GraphQL schema.

⁠Documentation

GraphQL Schema documentation coming soon!

⁠Usage with Nhost

⁠Local Usage

git clone https://github.com/nhost/stripe-graphql.git
cd stripe-graphql

After cloning the repo and going to the project directory, run the following command to generate models and logic from the GraphQL Schemas:

go generate ./graph

Now we can run the application either with Docker or the go cli tool.

⁠Docker
docker build -t stripe-graphql .
docker run -d -p 8080:8080 -t stripe-graphql
⁠Go
go run main.go

After running the application you can test out the GraphQL API with your favorite GraphQL client. You must specify your Stripe Secret key as an http header:

"X-Stripe-Secret-Key": "YOUR_STRIPE_KEY"

To get your Stripe secret key, go to Stripe⁠ and log in to your account. Then copy your secret key from the dashboard.

Tag summary

Content type

Image

Digest

Size

6.3 MB

Last updated

about 5 years ago

docker pull nhost/stripe-graphql