This code repository supports the Cloudinary Customer Education course offered Self Service offered in the Cloudinary Academy and virtual online courses offered throughout the year.
Download, clone or fork this repository so that you can work along with the code.
Install the latest version of node.js/npm to follow along with node exercises. Download node.js and npm. You must be at Node.js Version 10 or greater.
You can update node/npm with this command: npm i npm@latest -g
We'll be using Visual Studio Code to manage code in demos.
A text editor will work, but we recommend these IDE's for working with JavaScript as well:
I’ll be using Visual Studio Code with the Live Server extension to serve HTML files on localhost.
Another alternative to using the VS Code live server extension is to install the npm http-server
npm i -g http-server
and open the server from the terminal with
npx http-server
If you're using a Mac, you can use the built in python server
python -m SimpleHTTPServer 8000
Your .env
file is .gitignored
and can’t be accidentally checked into a repository
because it will contain your API_SECRET
.
In the root of the project, you’ll find a .env.template
file.
Copy it to an .env
file and add your information:
cp .env.template .env
This link will take you to the Console, where you can copy the Cloudinary URL into your buffer: https://www.cloudinary.com.
The .env file should contain the CLOUDINARY_URL and a USER_NAME which is the email you used to sign up for the account.
CLOUDINARY_URL=<cloudinary URL from console>
USER_NAME=<cloudinary account email>
Before running any scripts you need to run npm install
in the terminal.