Skip to content

ibrahim-13/f1-graphql-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

f1-api

A tiny server which exposes GraphQL API for Formula 1 race schedule. Data is retrieved from Linked Metadata.

Development

This package usage (gqlgen)[https://gqlgen.com/getting-started/] for GraphQL

  • Create the project skeleton
go run github.com/99designs/gqlgen init
go mod tidy
  • Run server
go run server.go
  • Run code generation
# `resolver.go` contains the following comment at the top, which generates the code
# //go:generate go run github.com/99designs/gqlgen generate
go generate ./..
  • Or run the generator
go run github.com/99designs/gqlgen generate

About

Formula 1 schedule API in GraphQL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages