ZeroIntensity / view.py

The Batteries-Detachable Web Framework
https://view.zintensity.dev
MIT License
205 stars 15 forks source link

Upgrade View Init #91

Open ZeroIntensity opened 10 months ago

ZeroIntensity commented 10 months ago

Improvement Description

A more rich, featured version of view init should be implemented. It should include (at least) the following:

Improvement Request Example API

$ view init
Name of project: my_app
Loader strategy [manual, simple, filesystem] (simple):
License (MIT):
Use a Git repository [y/N] (y):
Use components [y/N] (y):
Use a virtual environment [y/N] (y):
Select UI library:
- (none)
- Tailwind
- Bootstrap
- ... more here

Created `my_app/`
Created `my_app/app.py`
Created `my_app/view.toml`
Created `my_app/routes`
Created `my_app/routes/index.py`
Created `tailwind.config.js`
Initialized virtual environment in `my_app/.venv`

Installing view.py
... pip output ...

Successfully created `my_app`

Anything else?

No response

ZeroIntensity commented 10 months ago

Will do without #12 for now.

ZeroIntensity commented 10 months ago

94 is all that can be done for now. Will leave this open until it's fully done.

ZeroIntensity commented 10 months ago

When #12 is finished and this gets redone, view init should also add some linters and other things to be setup

When #56 is finished, a static files directory could also be added.