Easy and fast API documentation website generator & server written in Deno
- Install Deno (instructions) and make sure you are using the newest version
- Create 2 folders, one called routes and one called meta
- Create a new file in meta, name it site-name and type the title of your API docs
- Run
deno run --allow-read --allow-net --unstable --reload https://src.dokugen.co/dokugen.ts
- Access the server at port 8000 or the value of the PORT environment variable if set
Alternatively, you can run dokugen with the following one-liner. This script installs Deno if needed, creates the 2 folders and then starts dokugen.
curl -fsSL https://run.dokugen.co | sh
API endpoints are defined in the routes folder. Take a look at the contents of that folder in this repo to understand the folder structure and file definition format.