Backend Server - Message Board Web TypeScript
A backend server for saving message in database.
- Language: TypeScript v5.5.3
- Web FrameWork: Express v4.17.21
- ORM: TypeORM v0.3.20
- Database: Postgres v15.1
copy .env.example as .env
DB_HOST=
DB_PORT=
DB_USER=
DB_PASS=
DB_NAME=
PORT=8080
npm install
npm run migration:run
npm run start
- GET /message: 取得所有留言(時間從早排到晚)
- POST /messages: 新增留言
- DELETE /message/{id}: 刪除留言