Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot committed Oct 25, 2024
1 parent 60e0853 commit 2190781
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ compile:
npx tsp compile ./typespec/js-playwright/main.tsp --output-dir "./tsp-output/js-playwright"

dev:
docker run -v ./custom-server:/custom-server -p $(PORT):$(PORT) $(IMAGE_ID)
docker run -e PORT=$(PORT) -v ./custom-server:/custom-server -p $(PORT):$(PORT) $(IMAGE_ID)

start:
prism mock -m -p 4011 --host 0.0.0.0 ./tsp-output/http-api/@typespec/openapi3/openapi.1.0.yaml &
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@ https://twirl.github.io/The-API-Book/API.ru.html

## Prerequisites

* Nodejs 20+
* Ubuntu/Macos
* Make
* Docker (for deploy)
* Docker

## Commands

See [Makefile](./Makefile)

```bash
make setup
make dev # Open http://localhost:8080
make docker-build
make docker-run # Open http://localhost:8080
```

---
Expand Down

0 comments on commit 2190781

Please sign in to comment.