Skip to content

Gildewarz777/hyperchat_equify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperchat by Kyo

Chat API service coded with Node.js using Express and GraphQL coded in ES6 GraphiQL UI accessible through the /graphiql URL Apollo Engine plateform accessible through author account services

Getting started

Prequisites

Have Node.js installed. For the Apollo Server plateform have an account and demand permissions on the service.

Installing

Install all packages:

npm install

Run the app

Currently running on localhost:4000

npm start

API

Queries

  • getMessages(room: String!, since: Int): [Message!]
query{
  getMessage(room:"1"){
    id
    message
  }
}
query{
  getMessage(room:"1", since: 1){
    id
    message
  }
}

Mutations

  • postMessage(message: String!, room: String!, userHash: String): Message!
mutation{
  postMessage(message: "hello", userHash:"lalala", room:"3"){
    message
    userHash
    room
  }
}

Built with

  • Express.js
  • Apollo
  • GraphQL

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published