Notable Pseudocode Mashups

    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.

    Keywords

    none

    Install

    npm i express-static-s3

    DownloadsWeekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    9.47 kB

    Total Files

    9

    Last publish

    Collaborators

    • mctrivia