Coder Social home page Coder Social logo

kowts / s3commander Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nimbis/s3commander

0.0 0.0 0.0 776 KB

Web-based S3 file browser.

License: BSD 3-Clause "New" or "Revised" License

HTML 10.10% CSS 4.32% JavaScript 21.60% TypeScript 62.37% Shell 1.61%

s3commander's Introduction

DEPRECATED

This repository has been deprecated, and development is no longer supported.

s3commander

Web-based S3 file browser.

Local Development

Install required tools.

npm install -g gulp-cli

Install project packages.

npm install

Run the development server.

gulp serve

Vagrant Development

Spin up the Vagrant development box and SSH into it.

vagrant up
vagrant ssh

Navigate to the shared project folder and install project packages.

cd /vagrant
npm install

Run the development server.

gulp serve

Build

Create a release build.

gulp build

Dev

Create a development build.

gulp dev

Testing

Run the TypeScript linter.

gulp tslint

Releases

Increment the s3commander npm package. Currently the version is stored under the name s3commander in:

s3commander/package.json

Commit version update using git commit with description:

Update s3commander to version <new version>

Push the changes and merge with master.

Launch a browser and navigate to:

github.com/nimbis/s3commander

Click the tag labeled (number) releases.

Click "Draft New Release".

Title and tag the release with the new version (Ex. v0.12.1).

Add a description about what is new.

Publish the release.

Backends

  • AWS S3
  • (Planned) Backblaze B2

AWS S3

When you're working with AWS S3 buckets you need to configure an appropriate CORS policy. The one provided below is useful for development because it allows all requests from anywhere but you will want to use something different in production.

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedMethod>GET</AllowedMethod>
    <AllowedMethod>PUT</AllowedMethod>
    <AllowedMethod>POST</AllowedMethod>
    <AllowedMethod>DELETE</AllowedMethod>
    <MaxAgeSeconds>3000</MaxAgeSeconds>
    <ExposeHeader>ETag</ExposeHeader>
    <AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>

AWS recommends configuring the bucket with a lifecycle rule to abort incomplete multipart uploads. This will minimize your storage costs by removing the data for incomplete multipart uploads that may have been interrupted.

The HTML file upload functionality uses an HTTPS API endpoint based on the bucket name (i.e. https://<bucket>s3.amazonaws.com). If the bucket name has dots (.) in the name this will fail because you can't use HTTPS with subdomains.

Styling

The following HTML classes are made available alongside file types if you wish to style them in your own application with a library like FontAwesome:

  • Folders: s3c-folder-icon
  • Delete markers: s3c-delete-icon
  • Version markers: s3c-version-icon

References

s3commander's People

Contributors

abannerjee avatar ctrlc-root avatar djkiourtsis avatar electroniceagle avatar ericamador avatar kevinrobbins avatar mandan avatar mliudev avatar shaunbrady avatar stevenwessinger avatar strabitz avatar

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.