👐 Get Started
PRE-REQUISITE
- Make sure to have latest stable Git, Node/npm and yarn installed (For development you can install Now as well).
- Open terminal app (command line)
- Run
git clone https://github.com/cloudinary-devrel/cloudycam-monorepo
- Run
cd cloudycam-monorepo
- Run
yarn
- Open Chrome and browse this link →
chrome://extensions/
- In the top right corner switch on the developer mode (Screenshot)
- Now from the top left corner click
Load unpacked
and download this chrome extension, then browse this directorycloudycam-chrome-extension/copy-cloudycam-cli-command
- Now that we have the extension loaded click the
Details
button (Screenshot) - Enable the extension to run on Incognito mode (Screenshot Gif)
WORKFLOW
- Open the directory
cloudycam-monorepo
in your terminal - Define and Set the current context with
yarn context
- Take pics of the user and place them in the directory
./UPLOAD/
- Open Chrome browser in the Incognito mode
- Go to the registration page
https://cloudinary.com/users/register/free
- Ask the user to register a Cloudinary account
- Once they are done, you should have the CLI command copied to your clipboard which looks like this
yarn new demoName
- If by any chance that's not the case then localStorage can help save the day — just go to this link again
https://cloudinary.com/users/register/free
and click thecopy-cloudycam-cli-command
Chrome extension icon. By doing this your clipboard should again get populated by the same CLI command - Go to the terminal where you have the directory
cloudycam-monorepo
open. And paste + run the command from your clipboard i.e.yarn new demoName
- This command will run, optimize, zip, upload user pics to our demo account and user's account and will finally do a git commit/push to the
cloudycam-monorepo
repo — which will in turn trigger a Zeit build that will take about 3-10 seconds to create a new API which is requested by the live APP.
📟 COMMANDS YOU CAN RUN
️⚠️ GOTCHAS
Repo is private so I have pushed the .env
and serviceAccountKey.json
files with it. These files contain sensitive information related to GitHub, Google Cloud/Firebase, Zeit, Cloudinary API keys and secrets. These should be treated as you would treat your passwords. Giving someone access to clone these repos is equal to allowing them access to all of these accounts.
⚡ TLDR →