Creating and configuring the app
Creating a Genie app is simply done from within the Julia REPL environment. Genie includes various handy generators for bootstrapping new applications. These generators set up the necessary packages and application files in order to streamline the creation of various types of projects, including full-stack (MVC) apps and web services and APIs.
As we’re creating an MVC app - which we will name TodoMVC
, - we’ll use the MVC generator. We invoke the newapp_mvc
generator, passing the name of our new application. Open up the REPL, and at the Julia prompt, type in:
using Genie Genie.Generator.newapp_mvc("TodoMVC")
The preceding command creates a folder structure inside the TodoMVC
root folder of this application. Then, the following dialog is displayed:
Figure 4.1 – Choosing the DB backend
As MVC apps routinely use DB backends, the generator now gives us the possibility to configure the DB connection...