n. - A storage pile accumulated for future use
A PhoneGap example app using Vue.js, Framework7 (with Vue.js bindings) and the Adobe Stock API.
Hosted version of the Stockpile App.
- PhoneGap CLI:
npm install -g phonegap
- Adobe Stock API key
- TODO: Add Adobe Stock registration instructions
- Start by visiting the Adobe I/O Console Integrations.
- Click "New Integration", then choose "Access an API" --Continue
- Next choose "Adobe Stock" and "OAuth Integration" below that -- Continue
- Choose "New integration" -- Continue
- Give your integration a name like "Stockpile" and a Description like "A test Adobe Stock integration with a PhoneGap app"
- Choose Web as the platform
- The Default redirect URI part is not used by this app, so put in any URL (preferably your own). I have used "https://phonegap.com" and "https://phonegap\.com" for the Redirect URI pattern.
- Prove you are not a robot, then click the Create integration button
- Your integration has been created. Click "Continue to integration details" to get your API key
- Your API key will be under "API Key (Client ID)" on the left. You'll need to use that instead of the dummy key in
src/utils/config.js
git clone https://github.com/phonegap/phonegap-app-stockpile
cd phonegap-app-stockpile
npm install
npm run build
phonegap serve
Another option, for rapid developing in the browser, instead of npm run build
and phonegap serve
, you can also use
npm run dev
...which will run a hot reloading server and start up the browser at http://localhost:8080
. This will also allow use of the Vue.js development extension in Chrome
You can now view the app either in a browser atlocalhost:3000
, or using the PhoneGap Developer App on your device(s).
Of course, all the other PhoneGap CLI commands work as expected.
phonegap platform add ios
phonegap run ios
cordova platform add android
cordova run android --device
etc...
npm run build
-
run
npm run login
to link your local machine to your Firebase account -
run
npm run init
to initialize your project on Firebase (choose the options listed below)
- choose Hosting
- set public dir to
www
- configure as single-page app:
no
- run
npm run deploy
to upload your app to Firebase.