GithubHelp home page GithubHelp logo

callhandlingcenter-protei-cw's Introduction

CallHandlingCenter

CallHandlingCenter is a service that accepts HTTP requests, distributes them to operators, and emulates their response.

Done as coursework from Protei IT-school.

Prerequisites

cmake, C++20 - compliant compiller, git, conan 2.x

Verified setup: cmake/3.22.1, g++/11.4.0, conan/2.0.14

Building project

git clone https://github.com/Owizile/CallHandlingCenter-Protei-CW 
cd CallHandlingCenter-Protei-CW
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake --build ./src
cmake --build ./tests

To run the service:

cd src
./CallHandlingCenter

You can also use ./build.sh script which will build the project, run the tests and the service

Tests

To run the tests: (from build-directory)

./tests/CDRTest
./tests/CallQueueTest
./tests/CallCenterConfigTest

Usage information

The service is set up to run on the default address localhost:8080. It supports two content types: plain/text and json.

Example Usage

plain/text

To make a request with plain/text content type, you can use a tool like curl or an HTTP client. Here is an example using curl:

curl -X POST -H "Content-Type: text/plain" -d "<your_call_number_here>" http://localhost:8080

Replace <your_call_number_here> with the actual call number you want to use.

json

json supported structure:

{
 "Call-Number": <your_call_number_here>
}

callhandlingcenter-protei-cw's People

Contributors

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