Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 487 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 487 Bytes

bun-app

Build a docker image

docker build -t bun-app .

Run

docker run --rm --name bun -d -p 3003:3000 bun-app

or

docker compose -f docker-compose.yaml up --build -d

Test

curl http://localhost:3000

curl -X POST http://localhost:3000/send -d '{"mobile":"13800138000"}'

curl -X POST http://localhost:3000/verify -d '{"mobile":"13800138000", "code":"123456"}'

Develop

npm i -g bun

bun install

bun start