This folder contains data and scripts to use with exercises in Advanced Concepts workshop.
Assets used in this course can be found in the /assets
directory. They can be served from the course repo as https://cloudinary-training.github.io/advanced-concepts/assets for example https://cloudinary-training.github.io/advanced-concepts/assets/images/cc0.png.
This folder contains asset folders that can be served using github.io. To turn on github.io service after copying this repo into your account:
- go to settings
- scroll down to github pages
- select
master branch
from source - check enforce HTTPS if you are using a CNAME for your github.io repo
- you should be able to serve the assets using this URL:
https://<domain name | accountname.github.io>/advanced-concepts/<images | raw | video>
Your .env should look like this:
CLOUDINARY_URL=<cloudinary URL from console>
USER_NAME=<cloudinary account email>
To use the node scripts for exercises
npm install
- run your scripts from the root directory unless otherwise directed
- make changes to scripts as needed for your cloud name
- .env file is git ignored so it won't get checked in and doesn't exist in a fresh repo, you can use .env.template as a template and copy to .env.
cp .env signing-widgets/server
npm i
node app
- install vue cli globally
npm install -g @vue/cli
cd video-player/vuejs
npm i
npm run serve
In the Video Player Module, you'll use a Vue.js application, so you'll need to install npm modules under
the video-player
directory.
You'll need to change cloud name
in these files:
- video-player/vuejs/src/main.js
- video-player/vuejs/srce/views/VideoTag.vue
This repo uses prettier for formatting. If you're using Visual Studio Code you can add the prettier extension. You can also rename the .prettierrc.suggest
to the hidden file .prettier
to use the rules followed in formatting the code in this repo.
Contents of .prettier below
{
"singleQuote": true,
"tabWidth": 2,
"semi": false,
"arrowParens": "avoid",
"space-before-function-paren": true
}