Giter VIP home page Giter VIP logo

gifter's Introduction

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!

gifter's People

Contributors

svc-scm avatar wadewegner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gifter's Issues

missing GIPHY.resource

Wanted to do the SalesforceDX module regarding this project. When it got up to the part to replace api key in this file <GIPHY.resource> I couldn't find it. Is this a file where I'm supposed to create to is it missing? Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.