Lua web development and Sailor @conc_at 2015
-
Upload
etiene-dalcol -
Category
Software
-
view
266 -
download
0
Transcript of Lua web development and Sailor @conc_at 2015
Why Lua?
➔ It’s a multiparadigm scripting language➔ It looks cool (I heard you could make games with it)
@etiene_d
Why Lua?
➔ It’s a multiparadigm scripting language➔ It looks cool (I heard you could make games with it)➔ It’s made in my home country (In my university to be more precise)
@etiene_d
Why Lua?
➔ It’s a multiparadigm scripting language➔ It looks cool (I heard you could make games with it)➔ It’s made in my home country (In my university to be more precise)➔ It has great benchmarks
@etiene_d
How to web?
➔ Apache2 => mod_lua ./configure --enable-lua
➔ NginX => openresty
➔ Xavante
➔ others!@etiene_d
And what exactly is Sailor
➔ It’s an MVC web framework➔ Completely written in Lua➔ Compatible with Apache (mod_lua), Nginx
(OpenResty), Mongoose, Xavante and Lwan➔ Compatible with Linux, Windows and Mac➔ MIT License➔ Pre alpha v0.2 (Mars), preparing for 0.3
(Jupiter)
@etiene_d
What’s bad about it
➔ Early development➔ Things are changing fast (backwards compatibility is not guaranteed until version 1.0)➔ It still lacks features➔ Documentation
@etiene_d
Getting Sailor!
$ luarocks install sailor$ sailor_create ‘My App’ /var/www$ cd /var/www/my_app$ lua start-server.lua
@etiene_d