Check out the post.
-
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.9 -m venv env $ source env/bin/activate (env)$ pip install -r requirements.txt (env)$ python app.py
Navigate to http://localhost:5000/ping
-
Run the client-side Vue app in a different terminal window:
$ cd client $ npm install $ npm run serve
Navigate to http://localhost:8080