How to run **react-starter-app **
$ cp .env.sample .env
$ npm ci
- Read the detailed Stripe integration description on nestjs-starter-app/readme
- Copy the Public Key (e.g.,
pk_test_51...
) for use in your application.
Set Up Environment Variables:
-
In your project root, locate or create a
.env
file. -
Add the following lines to your
.env
file, replacingstripe_public_key
with the Stripe Public Key you copied:VITE_STRIPE_PUBLIC_KEY="stripe_public_key" ## e.g. pk_test_51...
-
Specify nestjs-starter-app server URL (local or global):
VITE_API_URL="api_url" # e.g. localhost:3000/api
# development
$ npm run start
# tests
$ npm run test