Class

mkdir week5
cd week5
ls
code .
touch server.js

in VS code,

const express = require("express");
const app = express();

app.use(express.static("public"));

const server = app.listen(5004, () => {
    console.log("listening on port 5004");
});
npm install express
node server.js
mkdir public
cd public
touch index.html
touch script.js
npm install -g nodemon //sync with server file
npm install socketIO
//html
˜˜writing html file

https://github.com/googleapis/nodejs-dialogflow

@google-cloud/dialogflow setup

  1. Service account
  2. continue
  3. select role: basic - owner
  4. done

⇒ service accounts ⇒ keys ⇒ add key ⇒ JSON ⇒ download

drag the json file into week5 folder

Readings

Voice Interaction and Player Identity Dissonance in Games

I played Zap Signal played by only "pon" and "waaa".

Surrealist Siri