Giter Club home page Giter Club logo

mercury's Introduction

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

mercury's People

Contributors

fperrad avatar mauriciobomfim avatar norman avatar nrk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mercury's Issues

Samples are broken

Not sure if this is still being developed but:

[spacekookie@normandy mercury]$ ls -al
total 64
drwxr-xr-x 6 spacekookie spacekookie  3488 Jul 22 16:33 .
drwxr-xr-x 7 spacekookie spacekookie  3488 Jul 22 16:29 ..
drwxr-xr-x 2 spacekookie spacekookie  3488 Jul 22 16:24 bin
drwxr-xr-x 8 spacekookie spacekookie  3488 Jul 22 16:31 .git
-rw-r--r-- 1 spacekookie spacekookie  1062 Jul 22 16:24 LICENSE
-rw-r--r-- 1 spacekookie spacekookie  4352 Jul 22 16:24 lp.lua
-rw-r--r-- 1 spacekookie spacekookie 10772 Jul 22 16:24 mercury.lua
-rw-r--r-- 1 spacekookie spacekookie  2454 Jul 22 16:24 README
drwxr-xr-x 2 spacekookie spacekookie  3488 Jul 22 16:24 rockspecs
drwxr-xr-x 2 spacekookie spacekookie  3488 Jul 22 16:24 samples
-rw-r--r-- 1 spacekookie spacekookie   303 Jul 22 16:24 TODO
[spacekookie@normandy mercury]$ LUA_PATH="samples/?.lua;;" ./bin/mercury greetings
/usr/bin/lua: ./bin/mercury:26: attempt to index a nil value (global 'xavante')
stack traceback:
	./bin/mercury:26: in main chunk
	[C]: in ?
****

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.