Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade View Init #91

Open
ZeroIntensity opened this issue Nov 27, 2023 · 3 comments
Open

Upgrade View Init #91

ZeroIntensity opened this issue Nov 27, 2023 · 3 comments
Assignees
Labels
cli This has to do with the CLI ($ view) delayed Delayed due to another issue improvement Improvement to an existing feature

Comments

@ZeroIntensity
Copy link
Owner

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 (Advanced Components API #12 and Layouts #90)
  • Along with component setup, presets with various UI libraries (Tailwind, Bootstrap)
  • Install dependencies
  • Database setup (This can be put off until Database ORM #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 ZeroIntensity added improvement Improvement to an existing feature cli This has to do with the CLI ($ view) delayed Delayed due to another issue and removed delayed Delayed due to another issue labels Nov 27, 2023
@ZeroIntensity
Copy link
Owner Author

Will do without #12 for now.

ZeroIntensity added a commit that referenced this issue Nov 27, 2023
@ZeroIntensity ZeroIntensity added the delayed Delayed due to another issue label Nov 27, 2023
@ZeroIntensity
Copy link
Owner Author

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

@ZeroIntensity
Copy link
Owner Author

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 ZeroIntensity self-assigned this Nov 30, 2023
@ZeroIntensity ZeroIntensity added this to the Beta milestone May 7, 2024
@ZeroIntensity ZeroIntensity removed this from the Beta Release milestone Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli This has to do with the CLI ($ view) delayed Delayed due to another issue improvement Improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant