-
FastApi
-
Install Python - this was written using 3.11.2
-
Create a venv in the root of repo:
python -m venv .venv
-
Activate your venv:
# In cmd.exe source .venv\Scripts\activate.bat # In PowerShell source .venv\Scripts\Activate.ps1 # In Git Bash source .venv/Scripts/activate # In Linux or Macos source .venv/bin/activate
-
Install Python requirements:
pip install -r requirements.txt
-
Create a .env file in the root of the repo and obtain the keys from a maintainer.
-
-
Stripe
- Install the Stripe Cli and login
- Set Stripe webhooks to ping to your local instance:
stripe listen --forward-to localhost:8000/api/v1/webhook
- Save your webhook signing secret as a secret in .env called
STRIPE_WEBHOOK_SECRET
- Run the app:
fastapi dev app/main.py
- You can send events to
webhook
withstripe trigger checkout.session.completed
Name | Description |
---|---|
Dream Renewables Cms | The Content Management System for this web application |
Dream Renewables Infrastructure | The Terraform for this web applications required architecture |
Dream Renewables Frontend | React code for this web application |