Completed

Nodejs AWS Developer

Hi There

I have a site that does uploads to S3 via a nodejs micro service and I’m needing the same for a zipped folder download on the other side.

I did a bit of code myself but I’m not fluent in this code so I’m battling to deploy and testing this on 2500 files (5.6gigs) fails locally. Smaller batches was working nicely. So I probably need help getting that sorted too.

Here is my attempt. Is this something you can help with? How much would it cost to get this sorted and deployed?

Look forward to your reply.

// ZIP files from S3

const fs = require('fs');

const join = require('path').join

const config = require('config');

const AWS = require('aws-sdk');

const s3Zip = require('s3-zip');

const XmlStream = require('xml-stream');

// the four variables I’ll need to input to control what gets downloaded and the name of the zipped folder.

var folderID = '11C85989-4B88-455A-8E8F-BBF55B7E1F0B';

var galleryID = '537';

var photographer = 'Photo Centz';

var galleryName = 'FOOTLOOSE 2020';

const bucket = 'resumeable-uploads';

const folder = folderID + '/' + galleryID;

var photographerPath = [login to view URL](" ", "-");

var galleryNamePath = [login to view URL](" ", "-");

const accessKeyId = [login to view URL]('[login to view URL]');

const secretAccessKey = [login to view URL]('[login to view URL]');

const region = [login to view URL]('[login to view URL]');

[login to view URL]({

accessKeyId,

secretAccessKey,

region

});

const s3 = new [login to view URL]({ region: region });

const params = {

Bucket: bucket,

Prefix: folder

}

const filesArray = [];

const files = [login to view URL](params).createReadStream();

const xml = new XmlStream(files);

[login to view URL]('Key')

[login to view URL]('endElement: Key', function(item) {

[login to view URL](item['$text'].substr([login to view URL]));

})

xml

.on('end', function() {

zip(filesArray);

})

function zip(files) {

[login to view URL](files);

const output = [login to view URL](join(__dirname, galleryNamePath + '_' + photographerPath + '.zip'));

s3Zip

.archive({ region: region, bucket: bucket, debug: true, preserveFolderStructure: false }, folder, files)

.pipe(output);

}

[login to view URL] = zip;

Skills: Amazon Web Services, node.js

See more: aws javascript sdk examples, aws-sdk angular, aws s3 node js example, aws-sdk npm, node.js aws-sdk import, aws-sdk typescript, aws node js sample application, aws node js tutorial, aws developer india, AWS Developer, aws developer contract, aws developer freelancer, aws developer freelancer mumbai, find aws developer freelance, freelance aws developer, aws developer portal github, aws developer certification, aws developer support plan, aws developer jobs salary, aws developer roles and responsibilities

About the Employer:
( 0 reviews ) Durban, South Africa

Project ID: #25860178

Awarded to:

Raptorak

I checked your project details carefully, Dear hiring manager. As a senior Nodejs AWS expert, I am very interested in your task. I am good at B2B & B2C Nodejs AWS development which I have been already tried. I have More

$140 USD in 3 days
(1 Review)
2.6

4 freelancers are bidding on average $133 for this job

shashank9090

Hi, I am an Expert NodeJs developer, can develop middlewares, API integrations etc. I love to develop pixel perfect and fully responsive mobile apps, compatible with each and every browser. I have over 7+ years of exp More

$150 USD in 7 days
(1 Review)
2.0
reosoft7

Hi, "I have gone through your description. "This is my area of specialization, i can get it done perfectly well. Please ping me in person. I can help you to complete all tasks. I and my team have hands-on experience i More

$140 USD in 7 days
(0 Reviews)
0.0
devgiridhari

Greetings, hiring manager, I am professional and fulltime AWS Nodejs expert. I just go through your job requirements and I would like to share that I am highly interested to be a part of your project as a Nodejs deve More

$100 USD in 2 days
(0 Reviews)
0.0