GithubHelp home page GithubHelp logo

get-a-room's Introduction

get-a-room

RESTful API for booking meeting rooms. Manage rooms and bookings.

Routes

Route Method Description JSON arguments
/rooms GET List rooms
/rooms POST Create a room { number: number, name: string }
/rooms/:number PUT Update a room { name: string }
/rooms/:number DELETE Delete a room
/bookings GET List bookings { roomNumber: (optional)number, date: (optional)date }
/bookings POST Book a room { title: string, roomNumber: number, startAt: date, endAt: date }
/bookings/:uid PUT Update a booking { title: (optional)string, roomNumber: (optional)number, startAt: (optional)date, endAt: (optional)date }
/bookings/:uid DELETE Delete a booking

Dependencies

Tested with:

  • NodeJS 8.11.4
  • Yarn 1.9.4
  • MongoDB 3.2.21

Set up

With all dependencies installed and MongoDB up, run:

yarn

Run server

Start server on port PORT (env var). Defaults to 3000.

yarn start

Run auto-refreshable dev server

yarn dev

Run tests with coverage

yarn test

Auto-fix coding style

yarn linter

Logging

Requests are logged in Apache combined format to access.log

get-a-room's People

Contributors

joao-sallaberry avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.