mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
27 lines
727 B
Markdown
27 lines
727 B
Markdown
# @logto/core
|
|
|
|
The core backend service.
|
|
|
|
## Get started
|
|
|
|
Copy proper `.env` to project root. (TBD: design the config process)
|
|
|
|
```bash
|
|
pnpm i && pnpm dev
|
|
```
|
|
|
|
## OpenAPI documentation
|
|
|
|
OpenAPI (Swagger) json is available on `http(s)://your-domain/api/swagger.json`. If you are running locally, the default URL will be `http://localhost:3001/api/swagger.json`. Consume it in the way you like.
|
|
|
|
### Using ReDoc
|
|
|
|
The doc website can be served by [redoc-cli](https://github.com/Redocly/redoc/blob/master/cli/README.md) in an extremely easy way:
|
|
|
|
```bash
|
|
npx redoc-cli serve http://localhost:3001/api/swagger.json
|
|
```
|
|
|
|
### Using Swagger editor
|
|
|
|
Copy the API output and paste it in the [Swagger Editor](https://editor.swagger.io/).
|