/graphAPI

API demonstrating the core elements of how to work with GraphQL instead of REST.

Primary LanguageTypeScript

Cards API

GraphQL API using Node.

screenshot


Here we see the core elements to work with GraphQL and how they are different from RESTful

Content

Intro

Base URL

localhost:4000

Resources (End Points)

Available at tests/routes.http

Requirements

  • Create and read users
  • Schema First approach
  • Typescript

Built With

  • Node v18
  • Apollo-server

Requisites

Install

You will need to install:

Get a local copy

Get a local copy, if you are using Git:

git clone git@github.com:SevlaMare/.git

Otherwise just hit (Download Zip) on the green button (Code) at top of this page.

Setup

yarn install

Run

To run, from the application folder, just type on terminal:

yarn dev

Now you can go to your favorite web browser like Google Chrome and access the base url.

Run Tests

queries examples available at queries.gql

Possible improvements

  • Use a migration library

Author

👤 Thiago Miranda

License

Creative Commons