Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
wiki:software:beuthbot:mensa-service [13.12.2019 09:33] Christopher Lehmann angelegt |
wiki:software:beuthbot:mensa-service [24.01.2020 15:12] (aktuell) Tolga Karaoglu [Versioning] |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | test | + | ===== Mensa Microservice ===== |
+ | |||
+ | A microservice for a Chatbot developed at the Beuth University of Applied Sciences Berlin | ||
+ | |||
+ | ==== Table of content ==== | ||
+ | |||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | - [[wiki: | ||
+ | |||
+ | ==== Getting Started ==== | ||
+ | |||
+ | === Prerequisites === | ||
+ | |||
+ | - [[https:// | ||
+ | - [[https:// | ||
+ | |||
+ | === Cloning === | ||
+ | |||
+ | Get the source code by cloning its repository via https: [[https:// | ||
+ | |||
+ | === Installing === | ||
+ | |||
+ | After cloning the repository, you will need to make sure that you have node and npm installed on your working system. To check if you already have node installed, try\\ | ||
+ | \\ | ||
+ | '' | ||
+ | \\ | ||
+ | Same for checking if npm is installed, just with npm instead of the node command\\ | ||
+ | \\ | ||
+ | '' | ||
+ | |||
+ | If you don't have node or npm installed, download the software via the links provided in [[wiki: | ||
+ | \\ | ||
+ | After that install all necessesary dependencies in the directory where the package.json exists\\ | ||
+ | \\ | ||
+ | '' | ||
+ | \\ | ||
+ | Now you can start the local development server to play around with the API and make your calls\\ | ||
+ | \\ | ||
+ | '' | ||
+ | \\ | ||
+ | This will fire up a development server that listens on port 8000.\\ | ||
+ | \\ | ||
+ | If you direct your browser to http:// | ||
+ | |||
+ | ==== Overview ==== | ||
+ | |||
+ | The mensa microservice is basically a // | ||
+ | |||
+ | ==== Structure ==== | ||
+ | |||
+ | The microservice consists of four folders containing several scripts, which are designated to perform certain tasks. Then we have the **services**-folder containing files, that consist of functions useful to process incoming requests from the chatbot and to generate a formatted answer-string, | ||
+ | |||
+ | ==== Functionalities ==== | ||
+ | |||
+ | On request, this microservice makes calls to the [[https:// | ||
+ | |||
+ | ==== Project structure ==== | ||
+ | |||
+ | === The services-folder === | ||
+ | |||
+ | This folder consists of several services, that perform specific tasks for the microservice. | ||
+ | |||
+ | == generateResponse.js == | ||
+ | |||
+ | Creates a nicely formatted string from a mensa-JSON-object and caches it. | ||
+ | |||
+ | == mealsOfSpecificDay.js == | ||
+ | |||
+ | Makes a request to the OpenMensa API and filters by given entities (for instance vegan and vegetarian meals only). | ||
+ | |||
+ | === The routes-folder === | ||
+ | |||
+ | This folder contains all the routes, that can be addressed on this server. The `index.js` manages all the routes. We've only got two routes in our project. The `/ | ||
+ | |||
+ | The `/ | ||
+ | |||
+ | ==== Further Development ==== | ||
+ | |||
+ | This is still a work in progress, so functionalities and structure might still change during development | ||
+ | |||
+ | ==== Further Reading ==== | ||
+ | |||
+ | - [[https:// | ||
+ | |||
+ | ==== Built With ==== | ||
+ | |||
+ | - [[https:// | ||
+ | - [[https:// | ||
+ | - [[https:// | ||
+ | |||
+ | ==== Versioning ==== | ||
+ | |||
+ | We use [[http:// | ||
+ | |||
+ | ==== Authors ==== | ||
+ | |||
+ | - **Tolga Karaoglu**\\ | ||
+ | - **Steven Sobkowski**\\ | ||
+ | \\ | ||
+ | See also the list of [[https:// | ||
+ | <WRAP pagebreak></ |