Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on classes / models #112

Open
tmaier opened this issue May 27, 2024 · 4 comments
Open

Add documentation on classes / models #112

tmaier opened this issue May 27, 2024 · 4 comments

Comments

@tmaier
Copy link

tmaier commented May 27, 2024

It would be great to have some code-level comments to explain a bit the architecture.

For example what the purpose of certain classes. For example, why is there a Session model.

This could help to understand the chosen architecture and helps a future developer to pick this up more quickly.

@lazaronixon
Copy link
Owner

That's a good idea. I would like to have some comments, like in the rails scaffold. Can you submit something?

@drewhoffer
Copy link

Don't mind taking a swing at a couple as I go through with building my app and adding as I come across. Can you give me an example of where to start for doing this @lazaronixon as well as what format you would like to see?

@lazaronixon
Copy link
Owner

lazaronixon commented Nov 3, 2024

I didn't make up my mind about this. But some topics to consider:

  • Take inspiration on rails scaffolds.
  • Comments in the controllers for sure.
  • I wonder if we should document models. I would have to see what it looks like first.
  • Only document the default generator (without options) and --api.
  • Reference methods that are not so common to the API rails documentation. so people can learn more.

@drewhoffer
Copy link

I will take a look this week and put some PR's up after work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants