1.0.4 • Published 3 years ago

express-static-s3 v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

Express Static S3 Page

Installation

npm install express-static-s3

Usage

//initialize express
const api = express();

//initialize body parser
const bodyParser = require("body-parser");
api.use(bodyParser.urlencoded({ extended: false }));
api.use(bodyParser.json());

//initialize express-static-s3
let staticServer=new ExpressStaticS3({
  accessKeyId:     'REDACTED',
  secretAccessKey: 'REDACTED',
  bucket:          'REDACTED'
});
api.use(staticServer.express);

Page will run entirely out of ram only updating from bucket on boot or when you call the .resync() function. You can use the prefix and folder option perameters to have more then one static page on the same server.

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago