A simple shopping application.
Demo: https://youtu.be/jaIMGyU75XI
Displays a catalogue of products currently in inventory. Allows you add an item to the shopping cart. Displays the quantity of items in the shopping cart.
The shopping cart view allows you to remove an item.
Work in progress.
Work in progress.
Allows you to add a new item to the inventory.
STRIPE_SECRET # Stripe API Secret Key
APP_SECRET_KEY # A unique secret key for use in JWT authentication
Credentials for Postgres connection:
PG_USER = os.environ.get('PG_USER')
PG_PASS = os.environ.get('PG_PASS')
PG_URL = os.environ.get('PG_URL')
Ensure the dmartdb is created prior to running the migration scripts.
To create the secret key use the following:
export APP_SECRET_KEY=$(python -c 'import secrets; print(secrets.token_hex(16))')
Use the above to store a unique key for JWT encryption.
Run the following:
pipenv install
pipenv shell
cd server/src/
export FLASK_APP=app.py
flask db upgrade
python seed.py
python app.py
Requires the following:
$ npm --version
10.8.2
$ node --version
v20.17.0
Run the following:
cd client
npm install
npm run dev