Genie.Generator.autostart_app — Functionautostart_app(path::String = "."; autostart::Bool = true) :: NothingIf autostart is true, the newly generated Genie app will be automatically started.
Genie.Generator.controller_file_name — Functioncontroller_file_name(resource_name::Union{String,Symbol})Computes the controller file name based on the resource name.
Genie.Generator.db_support — Functiondb_support(app_path::String = ".") :: NothingWrites files used for interacting with the SearchLight ORM.
Genie.Generator.fullstack_app — Functionfullstack_app(app_name::String) :: NothingWrites the files necessary to create a full stack Genie app.
Genie.Generator.generate_project — Functiongenerate_project(name)Generate the Project.toml with a name and a uuid. If this file already exists, generate Project_sample.toml as a reference instead.
Genie.Generator.install_app_dependencies — Functioninstall_app_dependencies(app_path::String = ".") :: NothingInstalls the application's dependencies using Julia's Pkg
Missing docstring for install_db_dependencies. Check Documenter's build log for details.
Missing docstring for install_searchlight_dependencies. Check Documenter's build log for details.
Genie.Generator.microstack_app — Functionmicrostack_app(app_name::String, app_path::String = ".") :: NothingWrites the file necessary to create a microstack app.
Genie.Generator.minimal — Functionminimal(app_name::String, app_path::String = abspath(app_name), autostart::Bool = true) :: NothingCreates a minimal Genie app.
Genie.Generator.mvc_support — Functionmvc_support(app_path::String = ".") :: NothingWrites the files used for rendering resources using the MVC stack and the Genie templating system.
Genie.Generator.newapp — Functionnewapp(app_name::String; autostart::Bool = true, fullstack::Bool = false, dbsupport::Bool = false, mvcsupport::Bool = false) :: NothingScaffolds a new Genie app, setting up the file structure indicated by the various arguments.
Arguments
app_name::String: the name of the app (can be the full path where the app should be created).autostart::Bool: automatically start the app once the file structure is createdfullstack::Bool: the type of app to be bootstrapped. The fullstack app includes MVC structure, DB connection code, and asset pipeline files.dbsupport::Bool: bootstrap the files needed for DB connection setup via the SearchLight ORMmvcsupport::Bool: adds the files used for HTML+Julia view templates rendering and working with resourcesdbadapter::Union{String,Symbol,Nothing} = nothing: pass the SearchLight database adapter to be used by default
(one of :MySQL, :SQLite, or :PostgreSQL). If dbadapter is nothing, an adapter will have to be selected interactivel at the REPL, during the app creation process.
Examples
julia> Genie.Generator.newapp("MyGenieApp")
2019-08-06 16:54:15:INFO:Main: Done! New app created at MyGenieApp
2019-08-06 16:54:15:DEBUG:Main: Changing active directory to MyGenieApp
2019-08-06 16:54:15:DEBUG:Main: Installing app dependencies
Resolving package versions...
Updating `~/Dropbox/Projects/GenieTests/MyGenieApp/Project.toml`
[c43c736e] + Genie v0.10.1
Updating `~/Dropbox/Projects/GenieTests/MyGenieApp/Manifest.toml`
2019-08-06 16:54:27:INFO:Main: Starting your brand new Genie app - hang tight!
_____ _
| __|___ ___|_|___
| | | -_| | | -_|
|_____|___|_|_|_|___|
┌ Info:
│ Starting Genie in >> DEV << mode
└
[ Info: Logging to file at MyGenieApp/log/dev.log
[ Info: Ready!
2019-08-06 16:54:32:DEBUG:Main: Web Server starting at http://127.0.0.1:8000
2019-08-06 16:54:32:DEBUG:Main: Web Server running at http://127.0.0.1:8000Genie.Generator.newapp_fullstack — Functionnewapp_fullstack(name::String; autostart::Bool = true) :: NothingTemplate for scaffolding a new Genie app suitable for full stack web applications (includes MVC structure, DB support, and frontend asset pipeline).
Arguments
name::String: the name of the appautostart::Bool: automatically start the app once the file structure is createddbadapter::Union{String,Symbol,Nothing} = nothing: pass the SearchLight database adapter to be used by default
(one of :MySQL, :SQLite, or :PostgreSQL). If dbadapter is nothing, an adapter will have to be selected interactivel at the REPL, during the app creation process.
Genie.Generator.newapp_mvc — Functionnewapp_mvc(name::String; autostart::Bool = true) :: NothingTemplate for scaffolding a new Genie app suitable for MVC web applications (includes MVC structure and DB support).
Arguments
name::String: the name of the appautostart::Bool: automatically start the app once the file structure is createddbadapter::Union{String,Symbol,Nothing} = nothing: pass the SearchLight database adapter to be used by default
(one of :MySQL, :SQLite, or :PostgreSQL). If dbadapter is nothing, an adapter will have to be selected interactivel at the REPL, during the app creation process.
Genie.Generator.newapp_webservice — Functionnewapp_webservice(name::String; autostart::Bool = true, dbsupport::Bool = false) :: NothingTemplate for scaffolding a new Genie app suitable for nimble web services.
Arguments
name::String: the name of the appautostart::Bool: automatically start the app once the file structure is createddbsupport::Bool: bootstrap the files needed for DB connection setup via the SearchLight ORMdbadapter::Union{String,Symbol,Nothing} = nothing: pass the SearchLight database adapter to be used by default
(one of :MySQL, :SQLite, or :PostgreSQL). If dbadapter is nothing, an adapter will have to be selected interactivel at the REPL, during the app creation process.
Genie.Generator.newcontroller — Functionnewcontroller(controller_name::Union{String,Symbol}) :: NothingCreates a new controller file. If pluralize is false, the name of the controller is not automatically pluralized.
newcontroller(resource_name::String) :: NothingGenerates a new Genie controller file and persists it to the resources folder.
Genie.Generator.newresource — Functionnewresource(resource_name::Union{String,Symbol}; pluralize::Bool = true, context::Union{Module,Nothing} = nothing) :: NothingCreates all the files associated with a new resource. If pluralize is false, the name of the resource is not automatically pluralized.
newresource(resource_name::String, config::Settings) :: NothingGenerates all the files associated with a new resource and persists them to the resources folder.
Genie.Generator.newtask — Functionnewtask(task_name::Union{String,Symbol}) :: NothingCreates a new Genie Task file.
Genie.Generator.remove_searchlight_initializer — Functionremove_searchlight_initializer(app_path::String = ".") :: NothingRemoves the SearchLight initializer file if it's unused
Genie.Generator.resource_does_not_exist — Functionresource_does_not_exist(resource_path::String, file_name::String) :: BoolReturns true if the indicated resources does not exists - false otherwise.
Genie.Generator.scaffold — Functionscaffold(app_name::String, app_path::String = "") :: NothingWrites the file necessary to scaffold a minimal Genie app.
Genie.Generator.setup_resource_path — Functionsetup_resource_path(resource_name::String) :: StringComputes and creates the directories structure needed to persist a new resource.
Genie.Generator.setup_nix_bin_files — Functionsetup_nix_bin_files(path::String = ".") :: NothingCreates the bin/server and bin/repl binaries for *nix systems
Genie.Generator.setup_windows_bin_files — Functionsetup_windows_bin_files(path::String = ".") :: NothingCreates the bin/server and bin/repl binaries for Windows
Genie.Generator.write_app_custom_files — Functionwrite_app_custom_files(path::String, app_path::String) :: NothingWrites the Genie app main module file.
Genie.Generator.write_resource_file — Functionwrite_resource_file(resource_path::String, file_name::String, resource_name::String) :: BoolGenerates all resource files and persists them to disk.
Genie.Generator.write_secrets_file — Functionwrite_secrets_file(app_path=".")Generates a valid config/secrets.jl file with a random secret token.