Skip to content

Anushan20/generation_lettre_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accepting a payment

An Express server implementation

You can 🎥 watch a video to see how this server was implemented and read the transcripts.

Requirements

  • Node v10+
  • Configured .env file

How to run

  1. Confirm .env configuration

Ensure the API keys are configured in .env in this directory. It should include the following keys:

# Stripe API keys - see https://stripe.com/docs/development/quickstart#api-keys
STRIPE_PUBLISHABLE_KEY=pk_test...
STRIPE_SECRET_KEY=sk_test...

# Path to front-end implementation. Note: PHP has it's own front end implementation.
STATIC_DIR=../../client/html
  1. Install dependencies and start the server
npm install
npm start
  1. The react frontend will be running on localhost:4242. Follow the instructions in the README there to install and start the frontend server.