From 8ad15d1300a0a66a2e7f8d6a3a9e1e924027d644 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Thu, 22 Dec 2022 18:17:20 -0800 Subject: [PATCH] readme: minor tweaks to development instructions --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac7896b..3c7f09e 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,12 @@ License: This project is placed in the public domain. Development --- -You'll need Python 3. Install the [Google Cloud SDK](https://cloud.google.com/sdk/gcloud/) (aka `gcloud`) with the `gcloud-appengine-python` and `gcloud-appengine-python-extras` [components](https://cloud.google.com/sdk/docs/components#additional_components). Then, run: +Pull requests are welcome! Feel free to [ping me in #indieweb-dev](https://indieweb.org/discuss) with any questions. + +First, fork and clone this repo. Then, install the [Google Cloud SDK](https://cloud.google.com/sdk/) and run `gcloud components install beta cloud-datastore-emulator` to install the [datastore emulator](https://cloud.google.com/datastore/docs/tools/datastore-emulator). Once you have them, set up your environment by running these commands in the repo root directory: ```sh +gcloud config set project bridgy-federated python3 -m venv local source local/bin/activate pip install -r requirements.txt @@ -26,7 +29,7 @@ pip install -r requirements.txt Now, run the tests to check that everything is set up ok: ```shell -gcloud beta emulators datastore start --no-store-on-disk --consistency=1.0 --host-port=:8089 < /dev/null >& /dev/null & +gcloud beta emulators datastore start --use-firestore-in-datastore-mode --no-store-on-disk --host-port=localhost:8089 --quiet < /dev/null >& /dev/null & python3 -m unittest discover ```