aboutsummaryrefslogtreecommitdiff
path: root/src/guff/run.cr
blob: 2b7e966f449142e3761fd4c2fd4a22627f600340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require "./config"
require "./model"
require "./server"

module Guff
  def self.run(app, args)
    # parse env and cli options
    config = Config.new(app, args)

    # create model
    model = Model.new(config)

    # create and run server
    Server.run(model, config)
  end
end