Example of S3 file upload using ng-file-upload, angular and node.
Coming soon.
Nodejs as a backend server. Expressjs as a wrapper on HTTP for nodejs to process.
AngularJS for frontend modularity and one page app. ng-file-upload for multipart file uploads to S3
Jasmine tests run through karma on the frontend. Mocha tests run through grunt for the backend.
node -v
npm -v
Make sure both the above commands were valid and printed out node and npm versions.
/usr/local sudo chown -R $USER /usr/local
npm install -g yo bower generator-angular-fullstack
npm install
bower install
Copy following into the configuration
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
grunt serve
http://localhost:9000/
To run the tests simply run grunt test