The GIF-to-Chatter app you didn't know you needed!
Перейти к файлу
Wade Wegner 8cd4c5f823
Update README.md
2018-03-24 12:49:49 -07:00
config Minor fixes and updates for chatter 2018-03-07 05:33:00 -08:00
force-app/main/default Removed unneeded debug statements 2018-03-08 06:23:11 -08:00
.forceignore Adding additional metadata 2018-02-21 09:06:36 -08:00
.gitignore Minor fixes and updates for chatter 2018-03-07 05:33:00 -08:00
LICENSE Create LICENSE 2018-02-21 05:42:28 -08:00
README.md Update README.md 2018-03-24 12:49:49 -07:00
app.json updated 2018-03-24 12:46:10 -07:00
setup.sh updated 2018-03-24 12:46:10 -07:00
sfdx-project.json GIPHY searches working 2018-02-24 07:09:36 -08:00
sfdx.yml updated 2018-03-24 12:46:10 -07:00

README.md

GIFter

The GIF-to-Chatter app for Lightning Platform you didn't know you needed!

image

Get a GIPHY API Key

Go to https://developers.giphy.com/ and create an new app. Grab the API Key and update the apiKey in force-app/main/default/GIPHY.resource.

Create an Unlocked Package

Create an Unlocked package:

sfdx force:package2:create -n GIFter -d "Using GIPHY to find GIFs and post to Chatter" -o Unlocked

This will only take a moment, and you'll have the following output:

=== Ids
NAME                   VALUE
─────────────────────  ──────────────────
Package2 Id            0Ho6A0000004C9hSAE
Subscriber Package Id  0336A0000001JQ6QAM

Grab the Package2 Id.

Open the sfdx-project.json file and replace YOUR_PACKAGE_ID with the ID from above (e.g. 0Ho6A0000004C9hSAE).

Now, create a version of your package:

sfdx force:package2:version:create -d force-app --wait 10

This will take a few moments. When complete, you'll have a message like the following:

Successfully created the package2 version [08c6A0000004CFWQA2]. Package2 Version Id: 05i6A000000CaSoQAK.
Subscriber Package2 Version Id: 04t6A000001aR9rQAE.

Grab the last ID that starts with 04t as that's what we'll use when installing into a new environment.

Create a new scratch org:

sfdx force:org:create -s -f config/project-scratch-def.json

Install the package version:

sfdx force:package:install -i 04t6A000001aR9rQAE --wait 10

Assign the permission set:

sfdx force:user:permset:assign -n GIFter

Open the app:

sfdx force:org:open -p one/one.app#/n/GIFter

Enjoy!