这是indexloc提供的服务,不要输入任何密码
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
36 changes: 34 additions & 2 deletions server/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ own machine and how to contribute.

### Compile
- `cd graphql-engine/server`
- `stack build --fast`
- `stack build --fast --flag graphql-engine:local-console`
- To enable console for local development, if the folder `../console/node_modules/` is not present

```
cd ../console
npm install
cd ../server
```

### Run
- Make sure postgres is running
Expand All @@ -29,7 +36,32 @@ own machine and how to contribute.
- Add test cases if relevant

### Test
- Run tests: `stack test --ta --database-url=<database-url>`
- Install the py-test dependencies:

```
pip3 install -r tests-py/requirements.txt
```

- Make sure postgres is running
- Run the graphql-engine:

```
stack exec graphql-engine -- --database-url=<database-url> serve`
```

- Set the environmental variables for event-trigger tests

```
export EVENT_WEBHOOK_HEADER="MyEnvValue"
export WEBHOOK_FROM_ENV="http://127.0.0.1:5592"
```

- Run tests:

```
cd tests-py
pytest -vv --hge-url=http://127.0.0.1:8080 --pg-url=<database_url>
```

### Create Pull Request
- Make sure your commit messages meet the [guidelines](../CONTRIBUTING.md).
Expand Down