-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update contributing with stripe instructions * Cleaned up route naming conventions and refined profil and admin UI * Robot listingID clickable on creation
- Loading branch information
1 parent
220f9d1
commit 12671d2
Showing
16 changed files
with
171 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ You can contribute to the K-Scale Store project in various ways, such as reporti | |
4. [Syncing Frontend and Backend](#syncing-frontend-and-backend) | ||
5. [React Setup](#react-setup) | ||
6. [Testing](#testing) | ||
7. [Stripe Setup](#stripe-setup) | ||
|
||
--- | ||
|
||
|
@@ -143,27 +144,33 @@ DYNAMO_ENDPOINT=http://127.0.0.1:4566 dynamodb-admin | |
Create a Python virtual environment using [uv](https://astral.sh/blog/uv) or [virtualenv](https://virtualenv.pypa.io/en/latest/) with **Python 3.11 or later**: | ||
|
||
1. **Using `uv`**: | ||
|
||
```bash | ||
uv venv .venv --python 3.11 | ||
``` | ||
|
||
2. **Using `virtualenv`**: If you choose to use `virtualenv`, ensure that **Python 3.11** is installed on your machine. You can check if it's installed by running: | ||
|
||
```bash | ||
python3.11 --version | ||
``` | ||
|
||
If Python 3.11 is installed, create the virtual environment with: | ||
|
||
```bash | ||
python3.11 -m venv .venv | ||
``` | ||
|
||
**Note**: If Python 3.11 is not installed on your machine, you will need to install it before proceeding. For macOS, you can install Python 3.11 using `Homebrew`: | ||
|
||
```bash | ||
brew install [email protected] | ||
``` | ||
|
||
### Activate the virtual environment: | ||
### Activate the virtual environment: | ||
|
||
Once the virtual environment is created, activate it: | ||
|
||
```bash | ||
source .venv/bin/activate | ||
``` | ||
|
@@ -249,6 +256,18 @@ make test-frontend # Run only the frontend tests | |
make test-backend # Run only the backend tests | ||
``` | ||
|
||
## Stripe Setup | ||
|
||
Run this to recieve stripe webhooks locally: | ||
|
||
```bash | ||
stripe listen --forward-to localhost:8080/stripe/webhook | ||
``` | ||
|
||
Make sure to set the `STRIPE_WEBHOOK_SECRET` environment variable to the value | ||
shown in the terminal and source it to the terminal you are running | ||
`make start-backend` in. | ||
|
||
## Optional | ||
|
||
Install pre-commit from [here](https://pre-commit.com/) to run the formatting and static checks automatically when you commit. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.