Skip to content

thestd/schedule-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

schedule-graphql

A GraphQL microservice that interacts with schedule-API.

GraphQL Playground

You can check schema, docs or test some requests here

Endpoints

To make an API call you're able to use either of them:

  • /
  • /graphql

Query Examples

{
  teacherSchedule(teacher: "Козленко Микола Іванович", date_to: "09.04.2020") {
    teacher
    schedule {
      date
      day
      items {
        number
        time_bounds
        info
      }
    }
  }
  
  groupSchedule(group: "ІПЗ-41", date_to: "09.04.2020") {
    group
    schedule {
      date
      items {
        number
      }
    }
  }
  
  groups(query: "ІПЗ")
  
  teachers(query: "Козич")
  
  college: faculties(query: "Коледж") {
    name
  }
  
  mif: faculties(code: 1002) {
    name
  }
}

How to run locally

  1. Clone the project:

    git clone git@github.com:thestd/schedule-graphql.git
    cd schedule-graphql
  2. Install the dependencies:

    npm install
  3. Run the application

    npm start

    or

    npm start:dev
    
  4. Server should be ready at localhost:3000