Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 705 Bytes

File metadata and controls

43 lines (29 loc) · 705 Bytes

SpaceX GraphQL Gateway

A GraphQL gateway for r-spacex/SpaceX-API

Installation

# clone the repository
$ git clone https://github.com/kevinstd/spacex-graphql-gateway.git

# copy the example env file
$ cp .env.example .env

# install dependencies
$ yarn

Running the project

# development mode
$ yarn start

# production mode
$ yarn build && yarn serve

NOTE: If you run on production mode make sure to change the value of NODE_ENV in the .env file to production

Available routes

  • The GraphQL endpoint
    • /graphql

Test

# static analysis
$ yarn static:analysis

# unit test
$ yarn test:unit