Skip to content
Genie + SearchLight sample app
Julia JavaScript HTML Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
build
cache initial commit Nov 5, 2018
config fixes Jun 10, 2019
db updates Jun 10, 2019
docs initial commit Nov 5, 2018
lib initial commit Nov 5, 2018
log initial commit Nov 5, 2018
public extended the tutorial with more features Mar 8, 2019
session initial commit Nov 5, 2018
src deps updates May 5, 2019
task
test initial commit Nov 5, 2018
.gitattributes
.gitignore updates May 5, 2019
LICENSE.md initial commit Nov 5, 2018
Manifest.toml
Project.toml
README.md Update README.md Jun 10, 2019
TestApp.jl updates and fronend assets Feb 13, 2019
bootstrap.jl updates May 5, 2019
env.jl initial commit Nov 5, 2018
genie.jl deps updates May 5, 2019
package.json initial commit Nov 5, 2018
webpack.config.js
yarn.lock

README.md

Genie Logo

Code for sample app presented here: https://github.com/genieframework/Genie.jl/blob/master/docs/content/Working_with_Genie_apps/index.md

Instructions:

  1. clone the repo: $ git clone https://github.com/genieframework/Genie-Searchlight-example-app.git
  2. in a terminal, cd to the app's folder: $ cd Genie-Searchlight-example-app/
  3. start a Julia REPL session in the app's root: $ julia (or on Windows, if you don't have Julia in your path, you will have to start a new Julia session and then julia> cd(...) into the app's root).
  4. julia> ] to enter Pkg mode
  5. pkg> activate .
  6. pkg> instantiate to download the dependencies for the project

Starting the app

Once all the dependencies have been installed please run:

  1. julia> using Genie # bring Genie into scope
  2. julia> Genie.REPL.write_secrets_file() # needed to set up the encryption key
  3. julia> Genie.loadapp() # load the web app environment
  4. julia> Genie.startup() # start the web app

After a few seconds you should get a message letting you know that the app can now be accessed in the web browser, by default at http://localhost:8000

Restarting the app

Later on you can load your Genie app in the OS terminal by running in the app's folder: $ bin/repl to start an interactive REPL session, and then julia> Genie.startup() to start the web server.

Or directly start the web app at the OS terminal:

$ bin/server # will start the web app non-interactively

Questions?

For more info about running and building Genie apps please follow the Genie README:

For a step-by-step tutorial of how this app is built go to:

You can’t perform that action at this time.