Skip to content

Auto-generated Documentation for Express and Mongoose based APIs

License

Notifications You must be signed in to change notification settings

seyiogunjuyigbe/express-mongoose-docs

 
 

Repository files navigation

express-mongoose-docs

Build Status Coverage Status

This module will take away the pain of writing API and Data Model documentation for your Express & Mongoose based REST API. It auto-generates API documentation from the code on runtime so the documentation always stays up to date.

Installation

  • Step 1 : Install
npm install express-mongoose-docs
  • Step 2 : Configure

Add these lines to your app.js file

var docs = require("express-mongoose-docs");

Make sure the following line comes after all express middleware such as app.use(express.bodyParser());

docs(app, mongoose); // 2nd param is optional

That's it. The Docs web page should be accessible at Your-Base-URL/apiDocs

Example: http://localhost:5000/apiDocs

Screenshots

routes

data-model

About

Auto-generated Documentation for Express and Mongoose based APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.8%
  • HTML 43.5%
  • CSS 3.7%