Hacker News new | ask | show | jobs
by mg 1632 days ago
My idea is that the script contains the basic steps which building an MVP usually contains: setup, routes, templates and user accounts.

From there on, it is up to the developer to add their own design and functionality. After you understand the code for setup, routes, templates and user accounts this should be easy.

As for mutliple steps adding to the same file, I think overwriting the whole file every time is doable. For example when we introduce the concept of a template, the template can be created like this:

    cat << 'EOF' > templates/index.html
    <h1>Hello World</h1>
    EOF
Now say later we want to use a base template which contains a content block. Now we modify the template to extend the base template:

    cat << 'EOF' > templates/index.html
    {% extends "base.html" %}
    {% block content %}<h1>Hello World</h1>{% endblock %}
    EOF