Check out the tutorial.
-
Fork/Clone
-
Sign up for Stripe (if you don't already have an account).
-
Set the Stripe keys as environment variables:
$ cd server $ export STRIPE_PUBLISHABLE_KEY=<YOUR_STRIPE_PUBLISHABLE_KEY> $ export STRIPE_SECRET_KEY=<YOUR_STRIPE_SECRET_KEY>
-
Run the server-side Flask app in one terminal window:
$ cd server $ python3 -m venv env $ source env/bin/activate (env)$ pip install -r requirements.txt (env)$ flask run --port=5001 --debug
Navigate to http://localhost:5001/ping
-
Run the client-side Vue app in a different terminal window:
$ cd client $ npm install $ npm run dev
Navigate to http://localhost:5173