From c78f701d1a7c9ccdf57e6849b7f24b692354a3e3 Mon Sep 17 00:00:00 2001 From: ocshawn Date: Fri, 15 Sep 2023 11:07:53 -0500 Subject: [PATCH 1/2] Add note to documentation for Ubuntu generate_data not running correctly --- devHelper/README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/devHelper/README.md b/devHelper/README.md index 60e06ece..5ff67500 100644 --- a/devHelper/README.md +++ b/devHelper/README.md @@ -1,4 +1,4 @@ -# How to generate mock data and start developing in your local +# How to generate mock data and start developing in your local ## Step.1 start elasticsearch Go to the repository's root directory, do: @@ -12,6 +12,10 @@ In the root directory of this repo, run the following command: ``` sh ./generate_data.sh ``` +On Ubuntu may need to run directly +``` +./generate_data.sh +``` Doing so will automatically generate 3 ES indices (1 for `subject`, 1 for `file`, and 1 for `config`) and populate 100 records into each index. @@ -50,8 +54,8 @@ In the root directory of this repo, run: GUPPY_PORT=3000 INTERNAL_LOCAL_TEST=true npm start ``` -The Guppy server will be hosted at [localhost:3000/graphql](http://localhost:3000/graphql), now use Insomnia or Postman to play with it! -We use nodemon to start the server, so all code change will be hot applied to the running server in realtime. +The Guppy server will be hosted at [localhost:3000/graphql](http://localhost:3000/graphql), now use Insomnia or Postman to play with it! +We use nodemon to start the server, so all code change will be hot applied to the running server in realtime. ## Step.4 start storybook for developing front-end components In the root directory of this repo, run: @@ -60,4 +64,4 @@ In the root directory of this repo, run: npm run storybook ``` -[Storybook](https://storybook.js.org/) will be hosted at [localhost:6006](http://localhost:6006). +[Storybook](https://storybook.js.org/) will be hosted at [localhost:6006](http://localhost:6006). From b98e25f2c72b28cf54cc322fd4cebccc8ccfa9a3 Mon Sep 17 00:00:00 2001 From: Shawn O'Connor Date: Tue, 3 Oct 2023 15:58:33 -0500 Subject: [PATCH 2/2] Update devHelper/README.md --- devHelper/README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/devHelper/README.md b/devHelper/README.md index 5ff67500..2588899e 100644 --- a/devHelper/README.md +++ b/devHelper/README.md @@ -9,10 +9,6 @@ docker-compose -f ./devHelper/docker/esearch.yml up -d ## Step.2 import mock data into elasticsearch index In the root directory of this repo, run the following command: -``` -sh ./generate_data.sh -``` -On Ubuntu may need to run directly ``` ./generate_data.sh ```