Misc

Example

The codebase does come with a microblogging example already implemented for you. Please take note that this is just an example implementation and not a full featured implementation with all edge cases covered yet (as of v0.1.0) and we will update it to be a more solid base for you to start with but that would also involve making the codebase specifically the controllers a lot more complicated for beginners.

Either way, here's the things that the Example covers right now.

Authentication

Views

Flash Messages

Flash messages are the de-facto way to pass through alerts through various redirects and these are also a part of the example and is responsible for all the alerts that you see on the top after you either update the post or delete it.

Note: These can be replaced with various other server session state messages if you are server rendering views.

CSS / Styling

TailwindCSS comes setup for you, and in most places you'll see it being used for layout more than styling. Most of the classes for tailwind are created as shortcuts using the @apply css decorator in the styles/tailwind.css file and then the shortcuts are used in necessary places. This is done since the Views approach cannot do components (unless you are using Adonis Edge) and so copying the same button everywhere makes no sense. It's still easy to override these shortcut based styles wherever you need them but having a quick class for the base still helps.

Validation

The Example comes with Yup as the payload validator for the controllers, this is just based on my own personal opinion and habit of using Yup everywhere.

Note: You are not limited to using Yup and can switch this to zod or anything else that you like.