github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/examples/hash/README.md (about)

     1  # Using dotnet with functions
     2  
     3  Make sure you downloaded and installed [dotnet](https://www.microsoft.com/net/core). Now create an empty dotnet project in the directory of your function:
     4  
     5  ```bash
     6  dotnet new
     7  ```
     8  
     9  By default dotnet creates a ```Program.cs``` file with a main method. To make it work with IronFunction's `fn` tool please rename it to ```func.cs```.
    10  Now change the code as you desire to do whatever magic you need it to do. Once done you can now create an iron function out of it.
    11  
    12  ## Creating an IronFunction
    13  Simply run
    14  
    15  ```bash
    16  fn init <username>/<funcname>
    17  ```
    18  
    19  This will create the ```func.yaml``` file required by functions, which can be built by running:
    20  
    21  
    22  ## Build the function docker image
    23  ```bash
    24  fn build
    25  ```
    26  
    27  ## Push to docker
    28  ```bash
    29  fn push
    30  ```
    31  
    32  This will create a docker image and push the image to docker.
    33  
    34  ## Publishing to IronFunctions
    35  
    36  ```bash
    37  fn routes create <app_name> </path>
    38  ```
    39  
    40  This creates a full path in the form of `http://<host>:<port>/r/<app_name>/<function>`
    41  
    42  
    43  ## Testing
    44  
    45  ```bash
    46  fn run
    47  ```
    48  
    49  ## Calling
    50  
    51  ```bash
    52  fn call <app_name> <funcname>
    53  ```
    54  
    55  or
    56  
    57  ```bash
    58  curl http://<host>:<port>/r/<app_name>/<function>
    59  ```