Skip to content

Starting point for the backend service mentioned in the Stripe tutorial from the Safe documentation.

License

Notifications You must be signed in to change notification settings

5afe/stripe-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stripe Server Example

The Stripe Server Example repository serves as the starting point for the backend service mentioned in the Stripe tutorial from the Safe documentation.

Installation

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.

FRONTEND_ORIGIN=http://localhost:3000,http://127.0.0.1:5173
SERVER_PORT=3001
STRIPE_SERVER_SECRET_KEY=

Build

pnpm build

Run the server

To run the server locally, execute the following command:

pnpm start

To run the server in production, once the build is completed, execute the following command:

pnpm start:prod

License

This library is released under MIT.