This repository demonstrates some basic Nuclio function examples.
The following examples were implemented as part of this repository:
- sentiments: A function that uses the vaderSentiment library to classify text strings into a negative or positive sentiment score. This was an example provided by Nuclio (link)
- temperature-conversion: A function that accepts input in Celsius and returns the temperature in Fahrenheit, and also the opposite.
- time-since: How much time has passed since a specific past date.
- db-add-recipe: This example demonstrates how to connect and add data to a database, using nuclio functions. In this example, when the function is invoked, it inserts a new recipe in the database.
- db-list-recipes: This example demonstrates how to connect and retrieve data from a database. In this example, when the function is invoked, it returns all the existing recipes that exist in the database.
The following components are installed on your machine:
- Docker
- Minikube
- Nuclio CLI (nuctl)
If the requirements are met, each example can be run using a command like:
sudo nuctl deploy \
--path PATH_TO_NUCLIO_EXAMPLES/nuclio-examples/EXAMPLE_TO_BE_RUN \
--registry $(minikube ip):5000 \
--run-registry localhost:5000
Further information for each one of the examples can be found inside each example's folder.
This project was created by Markos Baratsas and Maria Retsa, for the purposes of the Analysis and Design of Information Systems at ECE NTUA.