aboutsummaryrefslogtreecommitdiff
path: root/src/guff/run.cr
blob: 90afbaef1beef674b8d18675143004a7a903f46a (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)
  end
end