Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wejs/we-plugin-file-cloudinary

:cloud: Cloudinary file storage plugin for we.js :cloud:
https://github.com/wejs/we-plugin-file-cloudinary

Last synced: about 1 month ago
JSON representation

:cloud: Cloudinary file storage plugin for we.js :cloud:

Awesome Lists containing this project

README

        

# We.js Cloudinary plugin :cloud:

[Cloudinary](http://cloudinary.com) file storage plugin for [We.js](https://wejs.org/), upload files to Cloudinary and save metadata in file or image model

Suport for resize images based in image styles configuration

This plugin adds the cloudinary storage strategy in We.js projects

## Installation

```sh
we i we-plugin-file-cloudinary
```

## Configuration

Create one account in http://cloudinary.com

And add account configuration and change default storage in **config/local.js** file:

```js
// ----
apiKeys: {
cloudinary: {
'cloud_name': 'clowdname',
'api_key': 'apikey',
'api_secret': 'apisecret'
}
},
// change default image and file storage to cloudinary:
upload: {
defaultImageStorage: 'cloudinary',
defaultFileStorage: 'cloudinary'
}
// ----
```

## Links

* We.js site: http://wejs.org
* Cloundnary: http://cloudinary.com

## Testing

- Configure one cloudinary keys in config/local.js file
- run npm test

#### NPM Info:
[![NPM](https://nodei.co/npm/we-plugin-file-cloudinary.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/we-plugin-file-cloudinary/)

## Copyright and license

Under [the MIT license](https://github.com/wejs/we-core/blob/master/LICENSE.md).