Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 1.33 KB

README.md

File metadata and controls

81 lines (61 loc) · 1.33 KB

graphql-planets-be

License: MIT

Table of Content

Getting Started

Tools/Stacks

  1. Node
  2. Koa
  3. Knex
  4. Docker
  5. Typescript
  6. Graphql
  7. Jest

Setting up

  1. Clone this repository into your local machine:
e.g git clone https://github.com/OdunayoOkebunmi/graphql-planets-be
  1. cd into the folder
e.g cd graphql-planets-be
  1. Create .env file and fill out the required information
e.g cp .env.example .env
  1. Install dependencies
e.g npm install
  1. Start the application by running the server script.
 npm run start
http://localhost:3000/graphql
  1. Run docker-compose up

Test

run test using npm test.

Features

Planets

  • Get all planets
  • Get planets by ID 

Spacecenters

  • Get all spacecenter
  • Get spacecenter by ID or uid

Flights

  • Get all flights (paginated)
  • Get flights by ID 
  • Schedule a flight

Bookings

  • Create a booking
  • Get all Bookings (paginated)

Author