📖

Express & Prisma【1Express 初期設定】

2022/09/18に公開約500字

Express & Prisma【1Express 初期設定】

YouTube: https://youtu.be/YofQ3enYF0s

express: http://expressjs.com/ja/
ts-node-dev: https://www.npmjs.com/package/ts-node-dev

npm init
npm install express
npm i --save-dev @types/express
npm i ts-node-dev --save-dev   
package.json
  "scripts": {
    "dev": "ts-node-dev index.ts",
  },
index.ts
import express from 'express'

const app = express()
const port = 4000

app.get('/', (req, res) => {
  res.send('Hello World!')
})

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
})

Discussion

ログインするとコメントできます