Skip to content

silvester-pari/gather-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gather API tests

Based on https://github.com/gathertown/door-by-api

Setup

npm install -g serverless

Invoke the function locally

serverless invoke local --function currentTime

Deploy

In order to deploy the endpoint, simply run:

serverless deploy

For the frontend in client/dist (uploaded to S3), run:

serverless client deploy

Config

You need to set a config.js in the root folder:

module.exports = {
  ROOM_ID: 'space\\id',
  MAP_ID: 'room-name',
  API_KEY: 'api-key',
  DOOR_IMAGES: {
    open: 'open-url',
    closed: 'close-url',
    closed_highlight: 'close-highlight-url',
  },
  DOOR_POS: {
    x: x-pos,
    y: y-pos
  },
  PASSWORD: 'password',
};

...and a hint.js in client/dist:

const passwordHint = '12345';

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published