vectara / create-ui

Generate a working React codebase for a range of generative and semantic search UIs
https://vectara.github.io/create-ui
Apache License 2.0
69 stars 12 forks source link

Add search UI and dev script #4

Closed cjcenizal closed 11 months ago

cjcenizal commented 11 months ago

Overview

The intention behind this PR is to enable maintainers to rapidly iterate on the UIs locally. To this end, this PR makes these changes:

Dev process

Kick off the dev process by running:

npm run dev:search

This will:

  1. Copy the contents of the apps/search/ directory to dev/search/, which is gitignored. If this directory already exists, it will be completely overwritten.
  2. Copy the root-level .env file to dev/search/. This file is also gitignored. This file provides all of the process.env vars that configure the app.
  3. Watch the apps/search/ directory for changes and sync them to dev/search/.
  4. cd into dev/search/, install dependencies, and run npm run start. Output of these processes will log to the terminal.

For reviewers

The diff is pretty noisy, and I'm not sure how well I encapsulated changes in commits so reviewing the commit history might not be so great either. I think reviewing this locally will be the best way to get a sense of the changes.

I suggest: