Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

jtarchie/sinatra-openresty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

I'm a fan of the Ruby library Sinatra. It provides a great DSL to map HTTP requests to build APIs, websites, or just simple wrappers around already working code.

Getting Started

git clone https://github.com/jtarchie/sinatra-openresty.git
cd sinatra-openresty

Take a look at the example application under examples/app.lua.

TODO

  • look into using standard request and response objects (WSAPI or Rack)
  • Provide example application that uses JSON and database
  • Optimize route callback (should I be using coroutines or pcall)
  • Write documentation for supported functionality

Test

Assuming that you already have OpenResty installed, nginx is available via PATH, and you've added moonrocks.

luarocks install sinatra-dev-1.rockspec
busted 

About

Sinatra ported to OpenResty framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages