Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 724 Bytes

README.md

File metadata and controls

54 lines (36 loc) · 724 Bytes

Message Board Api

A backend server for saving message in database.

Overview

  • Language: TypeScript v5.5.3
  • Web FrameWork: Express v4.17.21
  • ORM: TypeORM v0.3.20
  • Database: Postgres v15.1

ENV

copy .env.example as .env

DB_HOST=
DB_PORT=
DB_USER=
DB_PASS=
DB_NAME=
PORT=8080

Run

install dependencies

npm install

run migration file

npm run migration:run

run

npm run start

API

message

  • GET /message: 取得所有留言(時間從早排到晚)
  • POST /messages: 新增留言
  • DELETE /message/{id}: 刪除留言