Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions devHelper/README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -10,7 +10,7 @@ docker-compose -f ./devHelper/docker/esearch.yml up -d
In the root directory of this repo, run the following command:

```
sh ./generate_data.sh
./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.
Expand Down Expand Up @@ -50,8 +50,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:
Expand All @@ -60,4 +60,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).