GithubHelp home page GithubHelp logo

mcamou / sinatra-s3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nricciar/sinatra-s3

0.0 3.0 1.0 406 KB

An implementation of the S3 API in Sinatra

Ruby 90.08% CSS 4.50% JavaScript 5.41%

sinatra-s3's Introduction

Sinatra-S3 is an implementation of the Amazon S3 API.  Based on the
Parkplace, written by _why, Sinatra-S3 has been extended to provide
additional support for ACLs, versioning and a bittorrent tracker.

Install
------------------------------------------------------------------

To install or upgrade Sinatra-S3

  sudo gem install sinatra-s3
  sinatra-s3 directory
  cd directory
  rake db:migrate

Or we could install from github (bleeding edge, may not work)

  sudo gem install sinatra builder
  git clone git://github.com/nricciar/sinatra-s3.git
  cd sinatra-s3/
  cp s3.yml.example s3.yml
  rake db:migrate

Optional Gems

ruby-git     - Enable S3 versioning support.
rubytorrent* - Enable S3 torrent support. 

* A custom version of rubytorrent is required to enable bittorrent 
  support. see http://github.com/nricciar/rubytorrent. 

Setup
------------------------------------------------------------------

Once Sinatra-S3 has been installed we can start our server and log in 
with the default username admin and password pass@word1. 

  rackup config.ru -p 6060

Once running log in with the username admin and password pass@word1 
via the control center at http://127.0.0.1:6060/control/.  Make sure
to change your password!

This version of sinatra-s3 uses Amazon's new subdomain-based API. That
means that buckets are treated as virtual hosts inside a domain, so
bucket test within the host localhost will be accessed as test.localhost.
That means that you need to either edit your DNS or your OS hosts file to
add hosts for each bucket you want to access. In UNIX-based systems, edit
/etc/hosts and add the hostname(s) at the end of the localhost entry:

127.0.0.1 localhost bucket1.localhost bucket2.localhost

You also need to use up-to-date versions of the Amazon client APIs.

sinatra-s3's People

Contributors

nricciar avatar tangtao avatar

Watchers

 avatar  avatar  avatar

Forkers

vidarh

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.