Git Product home page Git Product logo

book-room's People

Contributors

kricha avatar txwkx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

book-room's Issues

implement Book form

Required fields:

  • Title
  • Room
  • Date
  • Start time
  • End time (by default + 30 min)

Once claiming a room update 2 collections:

  • Meetings (new record -> [ roomId, hostId, startTime, endTime ] )
  • Bookings (find record by roomId & date -> update timeslots array )

implement sophisticated bookings collision detection

bookings collection consists of objects of type:

{
   roomId: ObjectId
   date: ISODate
   timeslots []: array of Strings
}

The startTime and endTime arrays are filtered versions of INTERVALS:

axios.get(`http://localhost:8008/api/bookings/${room}/${date}`)
        .then(res => {
          const bookings = res.data[0].timeslots;
          if(bookings) {
             INTERVALS = INTERVALS.filter(el => bookings.indexOf(el) < 0);
          }
        });
}

Issue:
Find a solution how to handle overlapping booking time slots.
Select a meeting from 8:30 to 11:00 while 9:00 - 10:30 is booked.

  • Update the timeslots array per day once a new meeting is created

cant load rooms

I got errors here in server.js
GET /api/rooms 500 0.583 ms - 2006
and
in console
Uncaught (in promise) Error: Request failed with status code 500
at e.exports (bundle.js:6)
at e.exports (bundle.js:36)
at XMLHttpRequest.p. (bundle.js:6)

is there anything i can do? also rooms.json is telling me an error "expected end of file"

create Auth HOC

Combine the common code from Login and Signup components into a high order component

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.