ForbesLindesay / brcdn.org

Browserify CDN
MIT License
12 stars 5 forks source link

Bootstrap dev environment with AWS credentials #2

Open zeke opened 9 years ago

zeke commented 9 years ago

I just tried to get this thing running locally, but it falls over here because I haven't set up AWS credentials:

var client = knox.createClient({
  bucket: process.env.AWS_BUCKET,
  key: process.env.AWS_KEY,
  secret: process.env.AWS_SECRET
});

Would you accept a pull request that adds http://npm.im/dotenv and a .env.example file?

ForbesLindesay commented 9 years ago

I use tode for setting environment variables in development. I don't think that a tool for setting environment variables should force you to modify the code for the project.

What I would quite like to see is something that makes it easy to get up and running with some kind of mock-s3 server that you could then test against locally. ideally this would then mean that in development, the domain "brcdn.org" would never be hard coded.

zeke commented 9 years ago

I wonder if faux-knox would do the trick.