https://github.com/5afe/stripe-server-example
Starting point for the backend service mentioned in the Stripe tutorial from the Safe documentation.
https://github.com/5afe/stripe-server-example
ethereum onramp safe stripe
Last synced: 4 months ago
JSON representation
Starting point for the backend service mentioned in the Stripe tutorial from the Safe documentation.
- Host: GitHub
- URL: https://github.com/5afe/stripe-server-example
- Owner: 5afe
- License: mit
- Created: 2024-08-21T15:18:34.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-21T22:38:34.000Z (9 months ago)
- Last Synced: 2024-12-21T05:42:01.792Z (5 months ago)
- Topics: ethereum, onramp, safe, stripe
- Language: TypeScript
- Homepage: https://docs.safe.global/sdk/onramp/stripe
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stripe Server Example
The Stripe Server Example repository serves as the starting point for the backend service mentioned in the [Stripe tutorial](https://docs.safe.global/sdk/onramp/stripe) from the Safe documentation.
## Installation
```bash
pnpm install
```## Set up the environment variables
Copy the `.env.example` file and rename it `.env`, adding the corresponding values to the environment variables. Get the secret key from the [Stripe dashboard](https://dashboard.stripe.com/test/apikeys).
```
FRONTEND_ORIGIN=http://localhost:3000,http://127.0.0.1:5173
SERVER_PORT=3001
STRIPE_SERVER_SECRET_KEY=
```## Build
```bash
pnpm build
```## Run the server
To run the server locally, execute the following command:
```bash
pnpm start
```To run the server in production, once the build is completed, execute the following command:
```bash
pnpm start:prod
```## License
This library is released under [MIT](https://github.com/5afe/stripe-server-example/tree/main/LICENSE).