This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
s3foo with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
s3foo is a command-line app, that pushes contents of the current folder to a s3 bucket and enables the bucket as a website.
npm install s3foo -g
cd [website] s3foo #prompt: bucket: myapp.w3foo.com
Make sure that you have your AMAZON_ACCESS_KEY_ID and AMAZON_SECRET_ACCESS_KEY setup as environment variables.
export AMAZON_ACCESS_KEY_ID=XXXXX export AMAZON_SECRET_ACCESS_KEY=XXXX