A not-so-small-but-not-large-either sample project showing how to do a basic, non-trivial, graphql api. As a starting point, it starts up a server with jwt authentication/authorization and a small book/author schema using a service to serve data.
Highlights
- Adding REST service to schema graph.
- Simple BooksFlaskAPI app included for the target REST API.
- Using Authorization with OAuth Jwt.
- Using Paging.
- Using a service/repo pattern for a custom data source.
Upcoming
- Dataloader to batch REST API calls
- Filtering
- F5 to build/debug (or use
dotnet watch --no-hot-reload
)
Publish to local "publish" directory
> dotnet publish -c Release -o publish
Use Dockerfile VSCode extension to build container or:
> docker build -t dockweb:latest .
Run container using Docker extension or manually:
docker run --rm -it -p 5000:5000/tcp dockweb:latest