GitHub - testdrivenio/flask-vue-stripe: Stripe payments with Vue and Flask (original) (raw)
Accepting Payments with Stripe, Vue.js, and Flask
Want to learn how to build this?
Check out the tutorial.
Want to use this project?
- 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=
$ export 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