Skip to content

Minimalist web server library for embedded and mobile devices, compatible with LuaJIT and Lua 5.1 (this project is no longer actively maintained)

License

Notifications You must be signed in to change notification settings

LuaMobile/octopus

 
 

Repository files navigation

Octopus web server

Octopus is a minimalist web server library for embedded and mobile devices. It serves as the foundation of the LuaMobile project.

One can launch a fully functional web server with a few lines of code. See example.server_http.lua for reference.

Compatibility

Octopus is written in the Lua programming language, compatible with Lua 5.1 and Luajit (recommended).

The ideal is to support iOS, Android and Windows phone. Currently it is being tested on Android only.

Dependencies

How to start/stop Octopus web server

Start

  1. Open up a shell prompt
  2. Navigate to directory containing octopus.lua
  3. Run: $ luajit example.server_http.lua start

Make sure that the Lua intepreter is in your PATH or you will have to type the full path to the Lua interpeter e.g. /path/to/luajit octopus.lua

The server runs by default on port 80 and can be accessed in a web browser with http://localhost

Files served by the server should be placed in folder docroot

Stop

  1. Open up a shell prompt
  2. Navigate to directory containing octopus.lua
  3. Run: $ luajit example.server_http.lua stop

Credits

This project started as a fork of Sam(uel) Saint-Pettersen's ladle, including some improvements backported from Daniel Rempel's ladle fork.

About

Minimalist web server library for embedded and mobile devices, compatible with LuaJIT and Lua 5.1 (this project is no longer actively maintained)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 86.7%
  • HTML 11.1%
  • CSS 2.2%