Giter Site home page Giter Site logo

graphql-api's Introduction

GraphQL API

About

An API developed using Spring Boot and GraphQL. It was developed for study purposes in GraphQL, a data query language. The project also used numerous Spring Boot and Java tools, and the H2 memory bank for ease of running the project, SOLID was also applied.

Screenshot

request_screenshot

Requirements

  1. Docker
  2. Docker-compose

Optional dependencies

  1. Java 17+
  2. Maven 3.6.2+

Get Started

Running with docker-compose

  1. Clone the repository or download the source code

     git clone https://github.com/WeversonL/graphql-api.git
     cd graphql-api
    
  2. Start with docker-compose

     docker-compose up -d
    
  3. Access the GraphQL command tab in your browser

     http://localhost:8080/graphiql
    

Running with docker

  1. Docker run

     docker run -p 8080:8080 --name gql-project weversonlemos/graphql-project:latest
    
  2. Access the GraphQL command tab in your browser

     http://localhost:8080/graphiql
    

Running with maven

  1. Clone the repository or download the source code

     git clone https://github.com/WeversonL/graphql-api.git
     cd graphql-api
    
  2. Download dependencies

     mvn clean install
    
  3. Run application

     mvn spring-boot:run
    

Possible commands to run

  1. At the moment, the GraphQL Playground is not implemented, so to know what operations are performed, consult the file:

     src/main/resources/graphql/schema.graphqls
    

Other information

  1. To terminate the containers, you can run

     docker-compose down
    
  2. You can directly access the in-memory database by following the url below

     http://localhost:8080/h2-console
    

Future features

  • As highlighted in one of the previous topics, the GraphQL Playground will be implemented, for an easier understanding of the API and possible operations

โš ๏ธ Still in development

License

graphql-api is released under the GNU General Public License, Version 2

    Copyright (C) 2022 Weverson Lemos

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version

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.