The file .env.sample
shows you what your environment variables file, .env
, should look like to run the code. You can click on a link in your Cloudinary account console to get your Cloudinary URL copied into your clipboard. Then you can paste into a .env file.
Run npm install
to install packages in the package.json
dependency list.
You'll find all assets stored in the ./assets/
folder. Image assets can be found in ./assets/images/
.
Script are intended to be run from the root unless otherwise specified.
Local assets references in code are relative to the root, so execute from the root. For example to execute an upload of a local asset run the following command from the root of the project.
node upload/local-asset.js
If you're logged in
https://cloudinary.com/console//media_library/folders/home/asset/<asset id from upload response>/manage