#Connect-NPM
1 messages · Page 1 of 1 (latest)
yess
Can you send me the URL to the example where you download it from?
Thanks, have you specified the STRIPE_PUBLISHABLE_KEY and STRIPE_SECRET_KEY in the local .env file?
yeah im using test keys
is this the correct folder or should i mive .env inside /server/node/ folder
these two right
I see, please run npm start and see if you are still getting any errors
i just did and yeah same error
How do you open the webpage? is it via http://localhost:3000 ?
well the provided client is just static
You still need run the local server and access the page from it.
I tried with http-server now but cant get it to open on port 3000
that is already running
cant get this
like index.html on 3000
try http://localhost:4242
so the server/server.js is running on http://localhost:4242
I need to get the client/index.html to run on http://localhost:3000 right? how would I do that?
or should I setup a react app and try it from there and get back to you?
This server is also serving the static file (see https://github.com/stripe-samples/accept-a-payment/tree/main/custom-payment-flow/client/react-cra) can you try opening the page at http://localhost:4242/index.html
No problem!
if i get some error which i cant figure out (unrelated to this thread) should i post it here or in #dev-help to start a new thread?
We can continue the discussion in this thread. If this thread is archived, feel free to ask in #dev-help again.
aighty <3