You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to *nodejs-functions/*, to add a new function, you need create a new directory in *src/handlers/*, inside of directory you need create a **index.js** file
58
+
59
+
And how last step you need add reference to this function in **serverless.yml**, check the azure serverless documentation [here](https://www.serverless.com/framework/docs/providers/azure/guide/intro/) for more information.
60
+
61
+
### Add Third Parties Dependencies
62
+
Add *package.json* with the modules that you need inside of function directory. Then add the follow line in **Makefile** inside of *nodejs-functions/*:
63
+
64
+
```bash
65
+
install-dependencies-nodejs:
66
+
cd src/handlers/automatic-clock-outs ;pwd;$(MAKE) install
67
+
cd src/handlers/my-awesome-function ;pwd;$(MAKE) install ## add function path. Dont forget use tabs
68
+
69
+
```
70
+
71
+
72
+
## Python Functions
73
+
74
+
Go to *python-functions/*, to add a new function, you need create a new directory in *src/handlers/*, inside of directory you need create a _ _ init _ _.py file
75
+
76
+
And how last step you need add reference to this function in **serverless.yml**, check the azure serverless documentation [here](https://www.serverless.com/framework/docs/providers/azure/guide/intro/) for more information.
77
+
78
+
79
+
## Ops Work
80
+
In case that you need:
81
+
- Add a new Environment Variable
82
+
- Create some function with third parties dependencies
0 commit comments