light-swift

Openstack Swift API implementation in Node.js

Light Swift

Openstack Swift API implementation in Node.js.

$ npm install -g light-swift

The quickest way to get started with light-swift is to utilize the executable light-swift to run the sample application using memory backend.

$ light-swift
$ light-swift -a account -u username -k password -b mongo -t '["mongodb://localhost/lightswift"]' -s filesystem -o '["/tmp/lightswiftstorage"]'
$ echo 'CREATE DATABASE `lightswift` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;' | mysql -u root
$ light-swift -a account -u username -k password -b mysql -t '["mysql://root:@localhost/lightswift"]' -s filesystem -o '["/tmp/lightswiftstorage"]'
$ light-swift -a account -u username -k password -b filesystem -t '["/tmp/lightswiftbackend"]' -s filesystem -o '["/tmp/lightswiftstorage"]'
$ npm install
$ MONGO_URL=mongodb://localhost/lightswifttest MYSQL_HOST=localhost MYSQL_USERNAME=root MYSQL_PASSWORD= MYSQL_DATABASE=lightswifttest cake test
$ MONGO_URL=mongodb://localhost/lightswifttest MYSQL_HOST=localhost MYSQL_USERNAME=root MYSQL_PASSWORD= MYSQL_DATABASE=lightswifttest cake coverage

Open coverage.html

Crafted by highly motivated engineers at Koofr and, hopefully, making your day just a little bit better.