--- tags: 111-1 --- # 2022/11/18 部課 ## TODO - [ ] Backend - [ ] NodeJS - [ ] Express # Backend [Backend](https://hackmd.io/lMQqI9HJRVKcBN2IOM6d-Q) # NodeJS [NVM](https://hackmd.io/LkWnyH8HRZSVVosrrDgV1g) [NodeJS](https://hackmd.io/llXQegO6RkGRyfeUsY8LXg) # Express [Express](https://hackmd.io/N68Vnr5kRTGPYzdyfIPo-A) ``` javascript const express = require("express"); const app = express() // Method = get, post, put, delete // Path = "/...." app.${Method}(${Path}, (req, res)=>{ res.send(${Return value}) }) app.route(${Path}) .${Method1}((req, res)=>{}) .${Method2}((req, res)=>{}) .${Method3}((req, res)=>{}) app.listen(4000, () => { console.log(`Example app listening at http://localhost:${port}`); }) ```