Open
Description
Especially https://metacpan.org/pod/distribution/Dancer2/lib/Dancer2/Tutorial.pod#Putting-it-all-together is bad and confuses new users. - just in a discussion with an unlucky person who followed that part.
So:
- Use dancer2 gen to properly create the app and adjust this.
- Code goes into a module and not in the main script
- Use standard plugins for login and database.
- Configuration goes into the proper files.
We really don't need to save place in our tutorial by lumping it altogether instead of where
the code / config belongs.