view.py icon indicating copy to clipboard operation
view.py copied to clipboard

Upgrade View Init

Open ZeroIntensity opened this issue 1 year ago • 3 comments
trafficstars

Improvement Description

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

  • Git repo initialization
  • Component setup (#12 and #90)
  • Along with component setup, presets with various UI libraries (Tailwind, Bootstrap)
  • Install dependencies
  • Database setup (This can be put off until #10 is done)
  • Virtual environment setup

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 avatar Nov 27 '23 15:11 ZeroIntensity

Will do without #12 for now.

ZeroIntensity avatar Nov 27 '23 19:11 ZeroIntensity

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

ZeroIntensity avatar Nov 27 '23 19:11 ZeroIntensity

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

  • mypy
  • flake8 (or this weird new thing called ruff)
  • mypyc?

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

ZeroIntensity avatar Nov 29 '23 15:11 ZeroIntensity