Skip to content

Commit 27044c8

Browse files
committed
removed generate from url, added note on next-client env files
1 parent 733e1b4 commit 27044c8

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Please create a GitHub Issue for anything you encounter.
55

66
Latest instructions for local development are [here.](/.contributing.md)
77

8-
98
[Talk to the City (T3C)](https://ai.objectives.institute/talk-to-the-city) is an open-source LLM-enabled interface for improving collective deliberation and decision-making by analyzing detailed, qualitative data. It aggregates responses and organizes similar claims into a nested tree of main topics and subropics.
109

1110
This repo will allow you to setup your own instance of T3C.
@@ -96,7 +95,7 @@ If you want to run a local version of the app that's not publically accessible:
9695

9796
1. Open up your terminal and navigate to the repo folder (e.g. /Desktop/tttc-light-js)
9897
2. Run `npm run build`.
99-
3. Run `npm run dev` to star the dev server. This will run three servers: the ``next-client`` frontend on localhost:3000, the ``express-server`` backend on localhost:8080, and the ``pyserver`` Python FastAPI server for the LLM calls on localhost:8000.
98+
3. Run `npm run dev` to start the dev server. This will run three servers: the `next-client` frontend on localhost:3000, the `express-server` backend on localhost:8080, and the `pyserver` Python FastAPI server for the LLM calls on localhost:8000.
10099
4. This build will be optimized for production.
101100

102101
#### Using docker locally (not recommended)

contributing.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,35 @@
33
## Quickstart
44

55
Latest instructions as we move to a separate Python server for LLM calls.
6-
First, pull the latest from ``main`` in this repo and start in the root directory (``tttc-light-js``).
6+
First, pull the latest from `main` in this repo and start in the root directory (`tttc-light-js`).
77

8-
### Set up Redis & Python dependencies
8+
### Set up dependencies
99

10-
1. In a new terminal, run ``brew install redis`` and ``redis-server`` to install Redis and start a local Redis server.
11-
2. From the repo root, ``cd pyserver`` and install the Python package dependencies in ``requirements.txt`` with your preferred method (e.g. ``pip install -r requirements.txt``). Note: this will get more standardized soon.
10+
1. In a new terminal, run `brew install redis` and `redis-server` to install Redis and start a local Redis server.
11+
2. From the repo root, `cd pyserver` and install the Python package dependencies in `requirements.txt` with your preferred method (e.g. `pip install -r requirements.txt`). Note: this will get more standardized soon.
12+
3. Add this line to ``next-client/.env`` and ``next-client/.env.local``:
13+
``export PIPELINE_EXPRESS_URL=http://localhost:8080``
1214

1315
### Launch the app
1416

1517
1. From the root level, run `npm i` then `npm run dev`.
16-
2. This should open four windows: the ``next-client`` app front end at `localhost:3000`, the ``express-server`` app backend at ``localhost:8080``, the ``pyserver`` Python FastAPI server for LLM calls at ``localhost:8000``, and an overall Node watch process from the ``common`` directory. Ideally none of these windows show errors — if they do, we need to fix them first.
18+
2. This should open four windows: the `next-client` app front end at `localhost:3000`, the `express-server` app backend at `localhost:8080`, the `pyserver` Python FastAPI server for LLM calls at `localhost:8000`, and an overall Node watch process from the `common` directory. Ideally none of these windows show errors — if they do, we need to fix them first.
1719
3. In your browser, go to `http://localhost:3000/create` to view the T3C app. To create a report, fill out the fields and click "Generate report"
1820

1921
### Viewing reports
2022

2123
1. Once you click "Generate report", if the process is successful, you will see the text "UrlGCloud". This is a hyperlink — open it in a new tab/window.
22-
2. You will see the raw data dump of the generated report in JSON format. The url of this report will have this form ``https://storage.googleapis.com/[GCLOUD_STORAGE_BUCKET]/[generated report id]``, where ``GCLOUD_STORAGE_BUCKET`` is an environment variable set in ``express-server/.env`` and the generated report id is an output of this pipeline run.
23-
3. The pretty version of the corresponding report lives at ``http://localhost:3000/report/https%3A%2F%2Fstorage.googleapis.com%2F[GCLOUD_STORAGE_BUCKET]%2F[generated report id]``. You can copy & paste and substitute in the values for the generated report id (different for each report you create) and the GCLOUD_STORAGE_BUCKET (likely the same for all testing sessions). Keep in mind that the separator is %2F and not the traditional url slash :)
24+
2. You will see the raw data dump of the generated report in JSON format. The url of this report will have this form `https://storage.googleapis.com/[GCLOUD_STORAGE_BUCKET]/[generated report id]`, where `GCLOUD_STORAGE_BUCKET` is an environment variable set in `express-server/.env` and the generated report id is an output of this pipeline run.
25+
3. The pretty version of the corresponding report lives at `http://localhost:3000/report/https%3A%2F%2Fstorage.googleapis.com%2F[GCLOUD_STORAGE_BUCKET]%2F[generated report id]`. You can copy & paste and substitute in the values for the generated report id (different for each report you create) and the GCLOUD_STORAGE_BUCKET (likely the same for all testing sessions). Keep in mind that the separator is %2F and not the traditional url slash :)
2426

2527
### Troubleshooting
2628

2729
Adding notes here from issues we surface in testing.
2830

29-
* Power cycling: one good thing to try first is to restart the process in any one of the windows by ending the process and rerunning the specific previous command in that window (e.g. using the up arrow to find it).
31+
- Power cycling: one good thing to try first is to restart the process in any one of the windows by ending the process and rerunning the specific previous command in that window (e.g. using the up arrow to find it).
3032

3133
## Older instructions below
34+
3235
## Setup
3336

3437
[See the setup instructions in README](./README.md#setup)

0 commit comments

Comments
 (0)