GithubHelp home page GithubHelp logo

amsem / graphql-apps Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

GraphQL server manages player data; GitHub client queries license information. Simple, efficient, and versatile.

License: MIT License

Go 100.00%

graphql-apps's Introduction

GraphQL Player API and GitHub License Client

This repository consists of two separate components: a GraphQL server for managing player data and a GitHub License client that queries license information for a specific key.

Server (GraphQL Player API)

Getting Started

To run the GraphQL server:

  1. Clone the repository:

    git clone https://github.com/your-username/graphql-server.git
  2. Navigate to the server directory:

    cd graphql-server
  3. Install dependencies:

    go get -u github.com/graphql-go/graphql
    go get -u github.com/graphql-go/handler
  4. Run the server:

    go run main.go

    The GraphQL server will be accessible at http://localhost:8000/graphql.

GraphQL Queries

The server supports the following GraphQL query:

Get All Players

Retrieve information about all players:

query {
  players {
    id
    name
    highscore
    isonline
    location
    levelsunlocked
  }
}

Player Object

The GraphQL schema defines a Player object with fields like id, name, highscore, isonline, location, and levelsunlocked.

Technologies Used

Contributing

Contributions are welcome! Feel free to fork the repository and submit pull requests. Issues and feature requests are also appreciated.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Client (GitHub License Client)

Getting Started

To run the GitHub License client:

  1. Clone the repository:

    git clone https://github.com/amsem/graphql-apps.git
  2. Navigate to the client directory:

    cd graphql-apps
  3. Install dependencies:

    go get -u github.com/machinebox/graphql
  4. Run the client:

    go run main.go

GitHub License Query

The client queries GitHub License information for a specific key (e.g., "MIT").

Technologies Used

Setting up GitHub Token

Make sure to set your GitHub token as an environment variable:

export GITHUB_TOKEN=your-github-token

Contributing

Contributions are welcome! Feel free to fork the repository and submit pull requests. Issues and feature requests are also appreciated.

License

This project is licensed under the MIT License - see the LICENSE file for details.

graphql-apps's People

Contributors

amsem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.