diff --git a/.help b/.help new file mode 100644 index 0000000..e69de29 diff --git a/app.lua b/app.lua index 177a46c..4e3bee7 100644 --- a/app.lua +++ b/app.lua @@ -1,17 +1,24 @@ local lapis = require("lapis") local app = lapis.Application() local say = require('lua_scripts/main') +local player = require('player') + +local db = require("lapis.db") +local Model = require("lapis.db.model").Model app:enable("etlua") +app.layout = require "views.layout" app:post("/clickme", function(self) self.plane = "P-38L" - return self.plane + return {self.plane, layout = false} end) app:get("/", function(self) self.text = say.hello() - return {render = "index"} + return {render = "index", + + } end) return app @@ -33,6 +40,19 @@ return app + + + + + + + + + + + + + diff --git a/config.lua b/config.lua index e63bdfd..fd412a1 100644 --- a/config.lua +++ b/config.lua @@ -3,5 +3,9 @@ local config = require("lapis.config") config("development", { server = "nginx", code_cache = "off", - num_workers = "1" + num_workers = "1", + sqlite = { + database = "my_database.sqlite", + -- open_flags = ... + } }) diff --git a/player.lua b/player.lua new file mode 100644 index 0000000..e69de29 diff --git a/views/index.etlua b/views/index.etlua index 9621738..ed17d69 100644 --- a/views/index.etlua +++ b/views/index.etlua @@ -1,29 +1,14 @@ -
Welcome to my page
-The missile guidance system works as follows
- - -