sanic-org / sanic

Accelerate your web app development | Build fast. Run fast.
https://sanic.dev
MIT License
18.08k stars 1.55k forks source link

Need an option to generate a skeleton project for app #3006

Open r0075h3ll opened 3 days ago

r0075h3ll commented 3 days ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe.

Need a clearly documented basic skeleton project structure for a sanic application.

Describe the solution you'd like

Reference: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/skeleton_website

Additional context

Need a command line option to generate something like this.

Tronic commented 3 days ago

The difference to Django is that Sanic is so much simpler it doesn't really need any more than one Python file: https://sanic.dev/en/guide/getting-started.html#getting-started

For a larger application, Blueprints will useful to keep it structured: https://sanic.dev/en/guide/best-practices/blueprints.html#blueprint-groups

I don't think any of this can be meaningfully generated because each app has different needs and Sanic tries to avoid needing any boilerplate code and config files (that could be generated).