Skip to content

A Lightning Web Component App which will help you to search movies and add them as your favourites in Salesforce.

Notifications You must be signed in to change notification settings

shyamravinair86/movie-searcher-app

Repository files navigation

CircleCI

movie-searcher-logo

Movie-Searcher is an application that will help you to search movies online and add them as your favourites in Salesforce. The application is built using Lightning Web Components.

Table of Contents

Generate API Key for OMDb API

  1. Go to OMDb API website and familiarise with the api.
  2. Click on API Key tab, select FREE as Account Type and your email address and click Submit.
  3. Check your inbox for the api key.

Installation Instructions

  1. Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
  1. Authenticate to your hub org and provide it with an alias as shown below:
sfdx force:auth:web:login -d -a myhuborg
  1. Clone the movie-searcher-app repository:
git clone https://github.com/shyamravinair86/movie-searcher-app.git
git cd movie-searcher-app
  1. Create a scratch org and provide it with an alias:
sfdx force:org:create -s -f config/project-scratch-def.json -a movie-searcher-app
  1. Push the app to your scratch org:
sfdx force:source:push
  1. Assign the MovieSearcher permission set to the default user:
sfdx force:user:permset:assign -n MovieSearcher
  1. Export sample data to your dev hub:
sfdx force:data:tree:import --sobjecttreefiles data/My_Favourite_Movie__c.json
  1. Open the scratch org:
sfdx force:org:open

Post Installation Instructions

  1. In your project directory, go to force-app/main/default/labels and edit CustomLabels.labels-meta.xml file. Enter the api key after = in the value attribute:
<?xml version="1.0" encoding="UTF-8"?>
<CustomLabels xmlns="http://soap.sforce.com/2006/04/metadata">
    <labels>
        <fullName>OMDB_API_URL</fullName>
        <language>en_US</language>
        <protected>true</protected>
        <shortDescription>OMDB_API_URL</shortDescription>
        <value>http://www.omdbapi.com/?apikey=</value>
    </labels>
</CustomLabels>
  1. Run the deploy command to push your changes to the Dev Hub:
sfdx force:source:push

About

A Lightning Web Component App which will help you to search movies and add them as your favourites in Salesforce.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published