Skip to content

clonq/dao-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dao-s3

AWS S3 adapter for daoi

Sample code

var dao = require('daoi');
var s3DaoAdapter = require('s3DaoAdapter');

s3DaoAdapter.config({ storage: 'mybucket/users.json' })

dao
.use(s3DaoAdapter)
.on('create', function(model){
	// persisted model
})
.on('error', function(err){
	// error handler
})
.create({ name: 'joe', email: '[email protected]' });

Installation

npm install dao-s3 --save

Make sure AWS_ACCESS_KEY and AWS_SECRET_KEY env vars are set. AWS Help.

Implementation

dao-s3 is a v0-compliant daoi adapter meaning that it only implements CRUD (create, read, update, delete) operations.

To Do

Get to compliance level v2. Compliance levels are described here.

About

AWS S3 implementation for daoi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published