-
Book Overview & Buying
-
Table Of Contents
Web Development with Julia and Genie
By :
The easiest way to add authentication to a Genie app is to use the GenieAuthentication plugin. Let’s add it and follow the installation instructions (https://github.com/GenieFramework/GenieAuthentication.jl) to set up our app for authentication.
In a terminal, start the Genie REPL for the TodoMVC app. Go to the application folder and run bin/repl if you are on Linux or macOS, or bin\repl.bat if you are on Windows. Then, in the REPL, type ] to enter the Pkg mode and add the GenieAuthentication plugin:
pkg> add GenieAuthentication
Once the plugin is installed, we need to configure it:
julia> using GenieAuthentication julia> GenieAuthentication.install(@__DIR__)
By running the install function, the plugin has added all the necessary integrations into our app (views, controller, model, migrations, and so on). You can see all the operations performed by the install function by looking at the output in the...