staart / api

🏁🛠️ SaaS backend & API framework based on @nestjs

Home Page:https://staart.js.org/api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please update and correct the documenation

johnnynanjiang opened this issue · comments

It looks like the doc is not update-to-date with the codebase.

  1. There is node dist/src/index.js in the documentation https://staart.js.org/api/getting-started.html, but the file index.js is missing in dist/src folder.

  2. The sample API code is outdated at https://staart.js.org/api/creating-a-controller.html, probably a sample endpoint could be included in the codebase so it will always update-to-date and work?

Good documentations would be a great help for people to try out this awesome product.

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.85. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Thanks for opening this issue, @johnnynanjiang! You're absolutely right. I'm currently working on master, adding an easier way for people to get started (better configuration management), and my goal is to re-write the entire docs site with comprehensive examples. I'm keeping this issue open to update you.

Thanks for opening this issue, @johnnynanjiang! You're absolutely right. I'm currently working on master, adding an easier way for people to get started (better configuration management), and my goal is to re-write the entire docs site with comprehensive examples. I'm keeping this issue open to update you.

Hi Anand, thanks for doing that, I believe good documents would save developers a lot of time.

For example, we just found out that we need to add v1 in URI to access endpoints like http://localhost/v1/..., things like this are missing from the documentation and wasting us a lot of time.

I think code is the best documentation, including a working sample endpoint in the codebase would solve the problem easily.

I've started working on this! Hopefully this will turn into comprehensive docs for everyone: https://github.com/staart/api/tree/master/docs.

⚠️ This issue has not seen any activity in the past 2 months so I'm marking it as stale. I'll close it if it doesn't see any activity in the coming week.