• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 15 years ago
  • Updated over 13 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

... because Sinatra is not the only one performing on the stage.
Mercury
... because Sinatra is not the only one performing on the stage.
================================================================================

-- Introduction ----------------------------------------------------------------

Mercury aims to be a Sinatra-like web framework (or DSL, if you like) for 
creating web applications in Lua, quickly and painlessly.

  require 'mercury'
  
  module('hello', package.seeall, mercury.application)
  
  get('/', function() 
    return "Hello world!"
  end)

Mercury is currently in its very early stages of development, it started like 
an hack and right now it still is nothing more than that. Having said that, I 
thought that things might get interesting and so I decided to release the 
actual source code and start working on it to get it properly done.

-- About the name --------------------------------------------------------------

"Mercury" because:
 * like Sinatra, he is a legend of the music history. That is, Freddie Mercury.
 * most of the cool web projects coded in Lua have astronomical references: 
    - the Kepler Project (web development platform)
    - Orbit (MVC framework)
    - Cosmo (templating system)
    - Sputnik (wiki engine)
 * it is the smallest planet in our solar system and the nearest to the Sun... 
 * ... and Mercury is the smallest web framework and the nearest to the "core".

-- How to execute the examples -------------------------------------------------

If you have installed Mercury using LuaRocks you should have the 'mercury' 
executable file available in your PATH, you just need to enter in the samples 
directory and launch one of the applications like this:

    mercury greetings

If, instead, you have simply cloned the repository, you can launch one of the 
example applications from the root directory of the project like this:

    LUA_PATH="samples/?.lua;;" ./bin/mercury greetings

-- Contributors ----------------------------------------------------------------

 * Mauricio Henrique Bomfim (http://github.com/mauriciobomfim)
   Support for Lua Pages as a templating engine for Mercury.

 * Norman Clarke (http://github.com/norman)
   Rockspec file for LuaRocks and various fixes.

 * Francois Perrad (http://github.com/fperrad)
   Support for CodeGen as a templating engine for Mercury.

-- Notes -----------------------------------------------------------------------

Want to help or contribute? Drop me a mail to suppakilla{at}gmail.com

More Repositories

1

redis-lua

A Lua client library for the redis key value storage system.
Lua
720
star
2

phpiredis

PHP extension for Redis based on Hiredis
C
494
star
3

predis-async

Asynchronous PHP client library for Redis built on top of ReactPHP
PHP
365
star
4

PredisServiceProvider

Predis service provider for the Silex microframework
PHP
68
star
5

hige

{{growing mustaches in your templates with Lua}}
Lua
34
star
6

redis-rdb

A set of utilities to handle Redis .rdb files with Ruby.
Ruby
34
star
7

lamestnews

Lamest News is a port to PHP of the application that powers Lamer News.
PHP
25
star
8

monolog-fluent

A simple Monolog handler for Fluent
PHP
20
star
9

ironruby-hpricot

A port of Hpricot to IronRuby
C#
9
star
10

ironruby-json

A port of Florian Frank's json library to IronRuby
C#
9
star
11

hpricot-pure

Simply Hpricot, just made "pure".
Ruby
6
star
12

bencoder

A Bencode serializer and deserializer in pure PHP.
PHP
5
star
13

couchdb-lua-viewserver

A CouchDB view server that allows writing view functions in Lua
Lua
5
star
14

couchdb-io-viewserver

This is an experiment for a CouchDB view server implemented in the Io language just for the fun of it.
Io
5
star
15

lazybag

Lazy values for lazy tables.
Lua
4
star
16

rayak

IronRuby + Kayak HTTP server + Rack
Ruby
3
star
17

niseredis

Niseredis will make a fool of you by trying its best to mimic Redis.
PHP
2
star
18

nrk.github.com

My GitHub homepage
2
star
19

PBKDF2ServiceProvider

Password-Based Key Derivation Function (PBKDF2) service provider for the Silex microframework
PHP
2
star
20

macchiato

From CoffeeScript to JavaScript, passing through PHP while sipping a Macchiato...
PHP
1
star