Skip to content

POC for NodeCloud with various design patterns - GSoC '17 ☀️

Notifications You must be signed in to change notification settings

rajikaimal/nodecloud-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nodecloud-architecture

NodeCloud GSoC Blog

POC for NodeCloud using different design patterns

Install

$ git clone https://github.com/rajikaimal/nodecloud-architecture
$ cd nodecloud-architecture
$ yarn install
const nodeCloud = require('nodecloud');
const config = require('./config');

// AWS
const ncAWS = nodeCloud.getProvider('aws');
const awsStorage = ncAWS.storage({ key: config.aws.S3, service: 'S3' });

awsStorage.createStorage({ Bucket: 'MyBucket', Body: 'Hello !' })
	.then(res => {
		console.log(`All done ! ${res}`);
	})
	.catch(err => {
		console.log(`Oops something happened ${err}`);
	})

// Google cloud platform
const ncGoogle = nodeCloud.getProvider('google');
const googleStorage = ncGoogle.storage({ key: config.google.storage, service: 'Storage' });

googleStorage.createStorage({ projectId: 'grape-spaceship-123' })
googleStorage.createStorage({ Bucket: 'MyBucket' })
	.then(res => {
		console.log(`All done ! ${res}`);
	})
	.catch(err => {
		console.log(`Oops something happened ${err}`);
	})

About

POC for NodeCloud with various design patterns - GSoC '17 ☀️

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published