#Connect-NPM

1 messages · Page 1 of 1 (latest)

fair musk
#

Hi there, are you running a Stripe example project?

fervent briar
#

yess

fair musk
#

Can you send me the URL to the example where you download it from?

fervent briar
fair musk
#

Thanks, have you specified the STRIPE_PUBLISHABLE_KEY and STRIPE_SECRET_KEY in the local .env file?

fervent briar
#

yeah im using test keys

#

is this the correct folder or should i mive .env inside /server/node/ folder

#

these two right

fair musk
#

Yes that's right.

#

Did you run a npm install and then npm start?

fervent briar
#

oh i did node server.js

#

after npm install

fair musk
#

I see, please run npm start and see if you are still getting any errors

fervent briar
fair musk
#

How do you open the webpage? is it via http://localhost:3000 ?

fervent briar
#

well the provided client is just static

fair musk
#

You still need run the local server and access the page from it.

fervent briar
#

I tried with http-server now but cant get it to open on port 3000

fervent briar
#

like index.html on 3000

fair musk
#

try http://localhost:4242

fervent briar
#

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?

fair musk
fervent briar
#

oh

#

my

#

god

#

im dumb

#

thank you so much :D

fair musk
#

No problem!

fervent briar
#

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?

fair musk
#

We can continue the discussion in this thread. If this thread is archived, feel free to ask in #dev-help again.