Skip to content

mariartc/nuclio-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuclio examples

Description

This repository demonstrates some basic Nuclio function examples.

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.

How to run these examples

Requirements

The following components are installed on your machine:

Running the examples

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.

About

Nuclio function examples created for the Analysis and Design of Information Systems ECE NTUA course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%