-
Notifications
You must be signed in to change notification settings - Fork 5
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
Generating new application with flask-server template fails #558
Comments
Some relevant notes: It's also unclear to me if we are suppose to support both 'server' and 'flask-server' templates. But the truth is that when I run |
Regarding the generation without failure using # ...
if template_name == 'server':
with tempfile.TemporaryDirectory() as tmp_dirname:
copymergedir(os.path.join(HERE, APPLICATION_TEMPLATE_PATH, template_name), tmp_dirname)
merge_configuration_directories(app_path, tmp_dirname)
generate_server(app_path, tmp_dirname)
#... |
I think we should improve the way templates are used. The double template idea seems confusing to me in general. What are the combinations which are allowed and what not? |
may be cookiecutter can be of any help https://github.com/cookiecutter/cookiecutter imo we should not combine templates and go for application types, e.g. Django microservice, Flask microservice, React micorservice etc |
Feature models are really good to capture configuration options: what are the "features" that are required, their mandatory dependencies, the optional ones as well as the forbidden ones. You can validate them usually to check if there is some "dead" features, and at the end, if you give some features you want for your product, you can derive the mantory other features you need to take, the optional ones you could includes and rejects the features you cannot take (or inform you that you have features that cannot work together). |
I'm afraid that the complexity start exploding really soon as we are in the O(n!) and we need to control the allowed ones. It's a very powerful strategy but I don't think the trade-off will be in our favour. For our sanity we should propose to the user a set of well defined possibilities with the choice of only one, leaving the possibility to compose templates to the developer -- this is how base and server templates were conceived, but the actual implementation (the I like @zsinnema idea to base the templating on an established library/tool. |
Running:
with latest develop
returns:
Expected:
The text was updated successfully, but these errors were encountered: