Giter Site home page Giter Site logo

rocks's Introduction

Tarantool Rocks

Packages repository for Tarantool - efficient NoSQL database and a Lua application server.

The repository contains precisely selected Lua modules which are fully compatible with Tarantool and were approved to use by Tarantool Team. Check the list of available package.

Tarantool CI System automatically builds and publishes RPM and DEB packages for all modules. Please consult Tarantool web-site for further information.

Prerequsites

  • Tarantool 1.6.8+ with header files (tarantool and tarantool-dev packages).
  • LuaRocks 2.1.x

Install Luarocks

Install LuaRocks using your favorite package manager:

apt-get install luarocks

Configure LuaRocks

Add http://rocks.tarantool.org/ to the list of upstream servers:

mkdir -p ~/.luarocks/
cat > ~/.luarocks/config.lua <<EOF
rocks_servers = {
    [[http://rocks.tarantool.org/]]
}
EOF

Usage

Type luarocks search <search string> in shell to search modules in repositories.

Type luarocks install <modulename> in shell to install or update module.

Use somevar = require('<modulename>') in Tarantool to load <modulename> module.

Example:

roman@work:~$ luarocks search http

Search results:
===============

Rockspecs and source rocks:
---------------------------

http
   scm-1 (rockspec) - http://rocks.tarantool.org/

roman@work:~$ luarocks install http --local
...
http scm-1 is now built and installed in /home/roman/.luarocks/ (license: BSD)

roman@work:~$ tarantool
localhost> client = require('http.client')
---
...
localhost> client
---
- request: 'function: 0x4107cfa0'
  post: 'function: 0x4107d090'
  get: 'function: 0x4107d050'
...

Bug Reporting

Open tickets in this repository if you have problems with module packaging. In all other cases please use upstream bug trackers.

Contributing

The repository is moderated by Tarantool Team. Please make a pull request with a new .rockspec file and we will try to review your request quickly.

New modules must satisfy the following necessary but not sufficient conditions:

  • Package is compatible with the latest Tarantool version on major platforms
  • Module is maintained and has a public git repository and a bug tracker (e.g. GitHub)
  • Source code is published under an OSI approved open-source license
  • The repository has minimal viable test suite

Tarantool Team tries to maintain high-quality standards to deliver the best experience for our community. If you are not sure how to properly create a new .rockspec and/or contribute your module, please open a ticket. Thanks!

See Also

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.