express-static-s3

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i express-static-s3

Weekly Downloads

4

Version

1.0.4

License

MIT

Unpacked Size

9.47 kB

Total Files

9

Last publish

Collaborators

  • mctrivia