Installation
- Fork and clone this repo from Github into your local environment
- Go into your local directory and open the contents in vscode or your preferred code editor.
- Run
$ pipenv installto install dependencies - Run
$ pipenv shellto create a virtual environment - Run
$ cd server/to enter the server directory
.env set up
- Create a
.envfile in the server directory - On line 1 write
SECRET_KEY= - In the terminal run
$ python -c import secrets; print(secrets.token_hex()) - Copy the resulting key from the terminal and paste it into your
.envas the value ofSECRET_KEY - Add
.envto your.gitignorefile.
Start the database
- Run
$ export FLASK_APP=app.py - Run
$ flask db init - Run
$ flask db upgrade - Run
$ python3 seed.pyto seed the database
Configuring Stripe
- Go to Stripe and create an account
- Go to your dashboard and get your API test key
- Go back into your
.envfile and create a line forSTRIPE_API_TEST_KEY - Paste the test key from the Stripe dashboard as the value for
STRIPE_API_TEST_KEY
Start the Server
- Run
python3 app.py
Starting the Client
$ cd clientin another terminal window- Run
$ npm installto install dependencies - Run
$ npm startto open the app in the browser