express-open-api icon indicating copy to clipboard operation
express-open-api copied to clipboard

Express with OpenAPI setup

Express OpenAPI

Code for the article: https://www.freecodecamp.org/news/how-to-build-explicit-apis-with-openapi/

This codebase shows how to build an OpenAPI-backed express application.

How to run

# Install dependencies
npm i

# Run app
npm run start

Dynamic API documentation

Thanks to its OpenAPI compliance, the app auto-generates the documenation of the API on the fly.

Available in http://localhost:3030/api-documentation, while the app is running.

doc-image

License

MIT © Alain Perkaz