aboutsummaryrefslogtreecommitdiff
path: root/src/guff/run.cr
blob: 37ff8b331f0c3b84417b52c7c772d921b6d36a9f (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 mapper
    models = Models.new(config)

    # create and run server
    Server.run(models)
  end
end