Andrew Hampton
Andrew Hampton

Reputation: 1742

Is there a library like Rails for Lua?

Is there a library like Rails for Lua?

Upvotes: 14

Views: 4144

Answers (7)

whoami
whoami

Reputation: 83

From the comments on the actual question, check out the lua-users.org wiki here for a list of web frameworks available. I have some experience with Sailor which seems like a good choice.

Upvotes: 0

Alex Petty
Alex Petty

Reputation: 423

I would definitely check out Lapis. It's a very lightweight and fast framework for OpenResty. I've really been enjoying it and predict it will have a bright future!

http://leafo.net/lapis/

As you would expect with anything built to leverage OpenResty, it's benchmarks are insanely good: https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=query

The author of Lapis also wrote a CoffeeScript-like language for Lua called MoonScript which is quite nice: http://moonscript.org/

Upvotes: 0

rnikhil275
rnikhil275

Reputation: 406

By Rails, I am assuming that you are looking for a MVC web framework. Check out Sailor. It's an open source framework and you can follow it's development on GitHub.

Upvotes: 1

aggsol
aggsol

Reputation: 2480

For building web applications in Lua (or MoonScript) lapis might be a fitting solution. It seems to be stable enough as known sites like http://itch.io or http://luarocks.org are built with it.

http://leafo.net/lapis/

Lapis includes URL routing, HTML Templating, CSRF Protection and Session support, PostgreSQL/MySQL backed models, schema generation and migrations in addition to a collection of useful functions needed when developing a website.

Upvotes: 2

Alex Dean
Alex Dean

Reputation: 16075

Tir is a simple Lua + Mongrel2 web framework written by Zed Shaw.

Upvotes: 4

hacintosh
hacintosh

Reputation: 3852

I was wondering the same thing and here is a list that I found on LuaForge.

Haven't tried any of them so your mileage may vary.

Upvotes: 1

Ignacio
Ignacio

Reputation: 1124

Entirely like Rails, I'd say no. But take a look at the Kepler Project and specially Orbit, which is a MVC framework. I'm doing web stuff with it and it is really fun to work with. You don't have the scaffolding stuff you have in Rails, but besides that, it has an orm, a templating engine (Cosmo), so you can get going.

Upvotes: 22

Related Questions