Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/grandemayta/nest-graphql

Create a GraphQL API over an existing Rest API. I deployed this project on Heroku. I used the following Github's APIS:
https://github.com/grandemayta/nest-graphql

graphql nestjs nodejs typescript

Last synced: 25 days ago
JSON representation

Create a GraphQL API over an existing Rest API. I deployed this project on Heroku. I used the following Github's APIS:

Awesome Lists containing this project

README

        

# Nest GraphQL
[![NPM version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=gh&type=6&v=0.0.1)](http://badge.fury.io/js/badge-list)
[![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)
[![made-with-javascript-doc](https://img.shields.io/badge/Made%20with-Javascript-1f425f.svg)](https://www.sphinx-doc.org/)

Create a GraphQL API over an existing Rest Api. I deployed this project on Heroku. You can use the IDE on this [link](https://nestjs-graphql.herokuapp.com/graphql). I used the following Github's APIS:
- Get users => https://api.github.com/users
```graphql
{
users {
login,
avatar_url
}
}
```
- Get user by ID => https://api.github.com/users/{id}
```graphql
{
user(login: "grandemayta") {
name,
company,
location
}
}
```
- Get User repositories => https://api.github.com/users/{id}/repos
```graphql
{
repositories(login: "grandemayta") {
name,
language
}
}
```

## Installation

```bash
$ npm install
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## Created with Nest

This application was created with [Nest](https://github.com/nestjs/nest).
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).

Keep calm and code!


[![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)