Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.02 KB

File metadata and controls

47 lines (32 loc) · 2.02 KB
description Follow this tutorial to quickly understand the basic building blocks of Nails and how to use core functionality such as Modules, Controllers, Views, and models.

Tutorial

Often learning by doing is easier than learning by reading. This tutorial is a very basic, and slightly contrived walk through of the key features of Nails. By building a simple blogging platform you can see how the framework fits together and how you can utilise the supplied tools to your advantage.

First up we'll set up our workplace and get Nails up and running in the Docker environment.

{% content-ref url="the-basic-application.md" %} the-basic-application.md {% endcontent-ref %}

Next we'll take a look under the hood at the skeleton and get a basic understanding of routes and modules.

{% content-ref url="routes-controllers-and-views.md" %} routes-controllers-and-views.md {% endcontent-ref %}

We'll then move onto understanding how Nails handles external assets such as javascript and CSS.

{% content-ref url="javascript-and-css.md" %} javascript-and-css.md {% endcontent-ref %}

We'll then take our theoretical knowledge and apply it practically by building a very simple database powered blogging platform.

{% content-ref url="adding-a-blog.md" %} adding-a-blog.md {% endcontent-ref %}

Blogs are more than just pages of text, in this section we'll begin to explore expandable fields and how we can build relationships in our data structures.

{% content-ref url="adding-some-expandable-fields.md" %} adding-some-expandable-fields.md {% endcontent-ref %}

Finally we'll introduce the Admin module and demonstrate how to build a GUI for administering the blog.

{% content-ref url="administration-and-users.md" %} administration-and-users.md {% endcontent-ref %}