You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It customizes directory names, filenames, and file contents based on user input (like project name and database choice),
523
523
effectively bootstrapping a new application with a chosen layout.</p>
524
524
<p>The core logic resides in the createFromTemplate function, w
525
-
hich is invoked by higher-level functions like CreateMinimal, CreateStructured, or CreateTODO.
525
+
hich is invoked by higher-level functions like CreateMinimal, or CreateStructured.
526
526
It systematically processes template items to build the new project. If any step fails, the scaffolding process is halted, and an error is returned.</p>
<p><strong>scaffolding</strong> in Nova automates project bootstrapping. It provides:</p>
160
160
<ul>
161
-
<li><strong>Multiple Layouts:</strong> Choose between Minimal, Structured, or TODO-style starter kits.</li>
161
+
<li><strong>Multiple Layouts:</strong> Choose between Minimalor Structured template.</li>
162
162
<li><strong>Name-Aware Paths:</strong> Template filenames and directories can include <code>{{.Name}}</code> to personalize paths.</li>
163
163
<li><strong>Content Templating:</strong> File contents are processed as Go <code>text/template</code>, with access to project metadata.</li>
164
164
<li><strong>Database Adapter Injection:</strong> Select between <code>sqlite</code>, <code>postgres</code>, or <code>mysql</code>; the correct Go import path is injected.</li>
<li><strong>Minimal:</strong> A bare-bones project with a single <code>main.go</code> file.</li>
183
183
<li><strong>Structured:</strong> A more complete project with a <code>main.go</code> file, a <code>cmd</code> directory, and a <code>db</code> directory.</li>
184
-
<li><strong>TODO:</strong> A full TODO CRUD API making use of all Nova’s powers to show off Nova’s capabilities.</li>
185
184
</ul>
186
185
<p>When you select a template, you get the following options:</p>
0 commit comments