Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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:
- Host: GitHub
- URL: https://github.com/wejs/we-plugin-file-cloudinary
- Owner: wejs
- Created: 2016-06-07T21:42:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-14T14:24:53.000Z (almost 8 years ago)
- Last Synced: 2024-10-07T17:11:35.285Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).