async-labs / saas

Build your own SaaS business with SaaS boilerplate. Productive stack: React, Material-UI, Next, MobX, WebSockets, Express, Node, Mongoose, MongoDB. Written with TypeScript.
https://saas-app.async-await.com
MIT License
4.11k stars 682 forks source link

Add optic for documentation #160

Closed ukmadlz closed 3 years ago

ukmadlz commented 3 years ago

This is an amazing starter for making a TS API & App, I really like how it's structured and the supporting material.

I thought it'd be great to add Optic as a way to automate the collection of API endpoint documentation, I've gone ahead and added the middleware and the pointers in the README. I've set it to only run in non-production setups with minimal hassle and to not get in the way of the users flow if they don't want to use the CLI.

Thanks, Mike