A Swagger UI implementation that can deployed as a static site and parses a remote Swagger JSON.
This is a simple frontend build wraps around Swagger UI using React.
It takes a SWAGGER_SPEC_URL
environment variable that should point to a valid Swagger JSON.
- Install Node v18.20.3+
- Install Yarn v1.22.5+
- Install the dependencies:
$ yarn install
- Run:
$ yarn start
- Open a browser and go to http://localhost:8080.
Command | Description |
---|---|
yarn build |
Builds the source code into the dist/ directory. |
yarn clean |
Deletes the dist/ directory. |
yarn env |
Copies the .env.example to a .env file. |
yarn lint |
Runs the linter on .js(x) and .ts(x) files. |
yarn prettier |
Runs the prettier on .js(x) and .ts(x) files. |
yarn start |
Builds and serves a development version at http://localhost:8080. |
yarn typecheck |
Runs a quick type-check on the .ts(x) files in the source. |
Please read the Contributing Guide to learn about the development process.
Please refer to the LICENSE file.