Giter Site home page Giter Site logo

meetingp's Introduction

Meeting planner

A REST API to schedule meetings !

  • Supports POST meetings (1 by 1)

The algorithm

The room search is using the following criteria:

  • capacity : 70% of initial capacity limit is defined in application.properties com.ndekefa.meetingp.capacity.limit=0.7
  • reservations : including previous meeting room & cleaning time
  • tools availability : meeting type is translated to tools requirement
public Optional<RoomEntity> schedule(MeetingDTO meeting) {
        return roomRepository.findAll().stream()
        .filter(byCapacity(meeting.getAttendees()))
        .filter(room -> canSchedule(meeting.getStartDate(), room))
        .map(roomEntity -> toolService.moveMissingTools(roomEntity, meeting.getType()))
        .min(Comparator.comparing(RoomEntity::getCapacity));
}

Oracle Database

docker run -d -p 1521:1521 -e APP_USER=tata -e APP_USER_PASSWORD=password -e ORACLE_PASSWORD=password -v oracle-volume:/opt/oracle/oradata gvenzl/oracle-free

Test

  • MainControllerTest : schedules 20 meetings (oracledb should be running)
  • MeetingPlannerImplTest : testing algorithm details
  • ToolServiceTest : testing tools related methods

or also curl_test.sh

curl -X POST -H "Content-Type: application/json" -d '{
"name": "Meeting Name",
"startDate": "2023-05-20T10:00:00",
"endDate": "2023-05-20T12:00:00",
"type": "VC",
"attendees": 10
}' http://localhost:8080/meeting

Meeting types are :

  • VC : video conference
  • SPEC : sharing knowledge and case studies
  • RS : simple in person meeting
  • RC : meeting with remote peers

meetingp's People

Contributors

anselmov 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.