Skip to content

Commit

Permalink
chore: Add Swagger UI Log Message and Update README.md with API Acc…
Browse files Browse the repository at this point in the history
…ess Information (#749)

Signed-off-by: l2D <[email protected]>
  • Loading branch information
l2D authored Jun 25, 2024
1 parent e6af66b commit 106a09c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,15 @@ cortex run llama3
To run Cortex as an API server:
```bash
cortex serve

# Output
# Started server at http://localhost:1337
# Swagger UI available at http://localhost:1337/api
```

You can now access the Cortex API server at `http://localhost:1337`,
and the Swagger UI at `http://localhost:1337/api`.

## Build from Source

To install Cortex from the source, follow the steps below:
Expand Down
1 change: 1 addition & 0 deletions cortex-js/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async function bootstrap() {

await app.listen(port, host);
console.log(`Started server at http://${host}:${port}`);
console.log(`Swagger UI available at http://${host}:${port}/api`);
}

bootstrap();

0 comments on commit 106a09c

Please sign in to comment.