14. #vscodejp
アプリと API のフォルダを作成 mkdir static-web-app-sample
cd static-web-app-sample/
mkdir app
mkdir api
code .
15. #vscodejp
Azure Functions のプロジェクトを作成
(VSCode 拡張機能もしくは CLI で)
$ cd api
$ func init
Select a number for worker runtime:
~中略~
3. node
~中略~
Choose option: 3
node
Select a number for language:
1. javascript
2. typescript
Choose option: 1
javascript
~中略~
16. #vscodejp
HTTP トリガーの関数を作成
(VSCode 拡張機能もしくは CLI で)
$ func new
Select a number for template:
~中略~
10. HTTP trigger
~中略~
Choose option: 10
HTTP trigger
Function name: [HttpTrigger] HttpTrigger1
Writing /home/tsubaki/src/static-web-app-
sample/api/HttpTrigger1/index.js
Writing /home/tsubaki/src/static-web-app-
sample/api/HttpTrigger1/function.json
The function "HttpTrigger1" was created
successfully from the "HTTP trigger"
template.