Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit ee4226e

Browse files
authored
Merge pull request #665 from BlasiusSecundus/feature/update-readme-after-refactor
docs: update readme to reflect changes in project structure
2 parents c041a1c + c436291 commit ee4226e

File tree

2 files changed

+23
-74
lines changed

2 files changed

+23
-74
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
# Table of contents
4+
5+
- [How to contribute](#how-to-contribute)
6+
- [Answering questions and writing documentation](#answering-questions-and-writing-documentation)
7+
- [Submitting changes](#submitting-changes)
8+
- [Coding conventions](#coding-conventions)
9+
- [SonarLint](#sonarlint)
10+
- [Commit messages](#commit-messages)
11+
12+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
13+
114
# How to contribute
215

316
We're really glad you're reading this, because we need more volunteer developers to help with this
@@ -71,6 +84,5 @@ To remove the git hook, just delete the `commitlint/.husky` folder.
7184

7285
As for the optional scope part of the commit message:
7386
- if your commit addresses an issue, please refer the issue number in the scope - e.g. `fix(#123): ...`
74-
- otherwise, if applicable, please use the modified / affected subproject name, without the repetitive prefix/postfix
75-
parts (like `graphql-kickstart-spring-boot`, `spring-boot-starter` or `autoconfigure`) - e.g. `feat(webflux): ...`
87+
- otherwise, if applicable, please refer to the added or modified feature - e.g. `feat(webflux): ...`
7688

README.md

Lines changed: 9 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,6 @@ Set the Kotlin version in your `<properties>` section
8282

8383
See our new [Documentation](https://www.graphql-java-kickstart.com/spring-boot/).
8484

85-
Repository contains:
86-
87-
* `graphql-spring-boot-starter` to turn your boot application into GraphQL server (
88-
see [graphql-java-servlet](https://github.com/graphql-java-kickstart/graphql-java-servlet))
89-
* `altair-spring-boot-starter` to embed `Altair` tool for schema introspection and query debugging (
90-
see [altair](https://github.com/imolorhe/altair))
91-
* `graphiql-spring-boot-starter` to embed `GraphiQL` tool for schema introspection and query
92-
debugging (see [graphiql](https://github.com/graphql/graphiql))
93-
* `playground-spring-boot-starter` to embed `GraphQL Playground` tool for schema introspection and
94-
query debugging (see [GraphQL Playground](https://github.com/prisma/graphql-playground))
95-
* `voyager-spring-boot-starter` to embed `Voyager` tool for visually explore GraphQL APIs as an
96-
interactive graph (see [voyger](https://github.com/APIs-guru/graphql-voyager))
97-
9885
## Requirements and Downloads
9986

10087
Requirements:
@@ -112,18 +99,6 @@ repositories {
11299
dependencies {
113100
implementation 'com.graphql-java-kickstart:graphql-spring-boot-starter:12.0.0'
114101
115-
// to embed Altair tool
116-
runtimeOnly 'com.graphql-java-kickstart:altair-spring-boot-starter:12.0.0'
117-
118-
// to embed GraphiQL tool
119-
runtimeOnly 'com.graphql-java-kickstart:graphiql-spring-boot-starter:12.0.0'
120-
121-
// to embed GraphQL Playground tool
122-
runtimeOnly 'com.graphql-java-kickstart:playground-spring-boot-starter:12.0.0'
123-
124-
// to embed Voyager tool
125-
runtimeOnly 'com.graphql-java-kickstart:voyager-spring-boot-starter:12.0.0'
126-
127102
// testing facilities
128103
testImplementation 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:12.0.0'
129104
}
@@ -132,46 +107,13 @@ dependencies {
132107
Maven:
133108

134109
```xml
135-
136110
<dependency>
137111
<groupId>com.graphql-java-kickstart</groupId>
138112
<artifactId>graphql-spring-boot-starter</artifactId>
139113
<version>12.0.0</version>
140114
</dependency>
141115

142-
<!-- to embed Altair tool -->
143-
<dependency>
144-
<groupId>com.graphql-java-kickstart</groupId>
145-
<artifactId>altair-spring-boot-starter</artifactId>
146-
<version>12.0.0</version>
147-
<scope>runtime</scope>
148-
</dependency>
149-
150-
<!-- to embed GraphiQL tool -->
151-
<dependency>
152-
<groupId>com.graphql-java-kickstart</groupId>
153-
<artifactId>graphiql-spring-boot-starter</artifactId>
154-
<version>12.0.0</version>
155-
<scope>runtime</scope>
156-
</dependency>
157-
158-
<!-- to embed GraphQL Playground tool -->
159-
<dependency>
160-
<groupId>com.graphql-java-kickstart</groupId>
161-
<artifactId>playground-spring-boot-starter</artifactId>
162-
<version>12.0.0</version>
163-
<scope>runtime</scope>
164-
</dependency>
165-
166-
<!-- to embed Voyager tool -->
167-
<dependency>
168-
<groupId>com.graphql-java-kickstart</groupId>
169-
<artifactId>voyager-spring-boot-starter</artifactId>
170-
<version>12.0.0</version>
171-
<scope>runtime</scope>
172-
</dependency>
173-
174-
<!-- testing facilities -->
116+
<!-- testing facilities -->
175117
<dependency>
176118
<groupId>com.graphql-java-kickstart</groupId>
177119
<artifactId>graphql-spring-boot-starter-test</artifactId>
@@ -184,7 +126,6 @@ Maven:
184126
### Snapshots
185127

186128
```xml
187-
188129
<repositories>
189130
<repository>
190131
<id>osshr-snapshots</id>
@@ -243,8 +184,8 @@ to `false` to disable it.
243184

244185
# Enable Graph*i*QL
245186

246-
Graph*i*QL becomes accessible at the root `/graphiql` if `graphiql-spring-boot-starter` is added as
247-
a dependency to a boot application.
187+
Graph*i*QL becomes accessible at the root `/graphiql` if the `graphql.graphiql.enabled` property
188+
is true.
248189

249190
Note that GraphQL server must be available at `/graphql/*` context to be discovered by Graph*i*QL.
250191

@@ -290,8 +231,7 @@ the `graphiql.headers` group.
290231

291232
# Enable Altair
292233

293-
Altair becomes accessible at the root `/altair` if `altair-spring-boot-starter` is added as a
294-
dependency to a boot application.
234+
Altair becomes accessible at the root `/altair` if the `graphql.altair.enabled` property is true.
295235

296236
Note that GraphQL server must be available at `/graphql/*` context to be discovered by Altair.
297237

@@ -336,8 +276,7 @@ the `graphql.altair.resources` group to set the classpath resources that should
336276
# Enable GraphQL Playground
337277

338278
GraphQL Playground becomes accessible at root `/playground` (or as configured
339-
in `graphql.playground.mapping`)
340-
if `playground-spring-boot-starter` is added as a dependency to a boot application.
279+
in `graphql.playground.mapping`) if the `graphql.playground.enabled` property is true.
341280

342281
It uses an embedded `GraphQL Playground React`, in accordance to
343282
the [official guide](https://github.com/prisma/graphql-playground#as-html-page), using the 'minimum
@@ -443,7 +382,7 @@ for `query`, JSON for `variables` and `responses`).
443382
# Enable GraphQL Voyager
444383

445384
**GraphQL Voyager** becomes accessible at root `/voyager` (or as configured in `voyager.mapping`)
446-
if `voyager-spring-boot-starter` is added as a dependency to a boot application.
385+
if the `graphql.voyager.enabled` property is true.
447386

448387
Available Spring Boot configuration parameters (either `application.yml`
449388
or `application.properties`):
@@ -529,9 +468,8 @@ the classpath. Use the `schemaLocationPattern` property to customize this patter
529468

530469
https://github.com/Enigmatis/graphql-java-annotations
531470

532-
The GraphQL Annotations library is used instead of GraphQL Java Tools if
533-
the `graphql-spring-boot-starter`
534-
dependency is replaced by `graphql-kickstart-spring-boot-starter-graphql-annotations`.
471+
To use GraphQL Annotations library instead of GraphQL Java Tools, set the `graphql.schema-strategy`
472+
property to `annotations`.
535473

536474
The schema will be built using the GraphQL Annotations library in a code-first approach - instead of
537475
writing it manually, the schema will be constructed based on the Java code. Please see the
@@ -679,8 +617,7 @@ the [Code of Conduct](http://contributor-covenant.org/version/1/3/0/).
679617

680618
# Licenses
681619

682-
`graphql-spring-boot-starter`, `altair-spring-boot-starter`, `graphiql-spring-boot-starter`
683-
and `voyager-spring-boot-starter` are licensed under the MIT License. See [LICENSE](LICENSE.md) for
620+
`graphql-spring-boot-starter` is licensed under the MIT License. See [LICENSE](LICENSE.md) for
684621
details.
685622

686623
[graphql-java License](https://github.com/andimarek/graphql-java/blob/master/LICENSE.md)

0 commit comments

Comments
 (0)