adonis-cloudinary
v0.0.2
Published
Cloudinary Service Provider for Adonis 3
Downloads
3
Readme
Cloudinary Service Provider for Adonis 3
Installation
- Install using npm
$ npm install adonis-cloudinary --save
- Update your
.env
file with your Cloudinary Credentials
CLOUDINARY_NAME=supersaiyan777
CLOUDINARY_API_KEY=superbabidikey
CLOUDINARY_API_SECRET=ultrainstinctbabidi
- Create
config/cloudinary.js
file in your project
const Env = use('Env')
module.exports = {
name: Env.get('CLOUDINARY_NAME', ''),
api_key: Env.get('CLOUDINARY_API_KEY', ''),
api_secret: Env.get('CLOUDINARY_API_SECRET', '')
}
___
- Register the
adonis-cloudinary
in the service providers inbootstrap/app.js
const providers = [
...
'adonis-cloudinary/provider/Cloudinary'
]
const aliases = {
...
Cloudinary: 'Adonis/Addons/AdonisCloudinary'
}