git clone https://github.com/AgeeHuang/choco-test.git
cd choco-test
npm install
-
.env
- PORT: server-side Port.
- MONGO_URI: Connecting Database(I insert drama-list on mLab.)
-
run dev server
npm run dev-server
- use Postman
- Send GET request: http://localhost:3001/api/list
get all drama
- Send GET request: http://localhost:3001/api/list?name={keyword}
get all drama which name is match keyword
.
- Send GET request: http://localhost:3001/api/list
- run dev client
npm run dev-client
- visit