You need to sign in to do that
Don't have an account?
Lucy Monk 3
Push Lightning Web Component Files instructions please
Hi
I'm new to this area & finding the instructions in this unit very thin on the ground. I haven't even got to the challenge yet, I'm trying to follow along in the unit example.
It links to these instuctions to follow from GitHub:
Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
Enable Dev Hub in your Trailhead Playground
Install Salesforce CLI
Install Visual Studio Code
Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
If you haven't already done so, authenticate with your hub org and provide it with an alias (myhuborg in the command below):
sfdx force:auth:web:login -d -a myhuborg
Clone the repository:
git clone https://github.com/trailheadapps/ebikes-lwc cd ebikes-lwc
Create a scratch org and provide it with an alias (ebikes in the command below):
sfdx force:org:create -s -f config/project-scratch-def.json -a ebikes
Push the app to your scratch org:
sfdx force:source:push
Assign the ebikes permission set to the default user:
sfdx force:user:permset:assign -n ebikes
Load sample data:
sfdx force:data:tree:import --plan ./data/sample-data-plan.json
Open the scratch org:
sfdx force:org:open
In Setup, under Themes and Branding, activate the Lightning Lite theme.
In App Launcher, select the E-Bikes app.
I'm afraid I need a bit more direction at this point, like clone a repository, cool there's a link, what do i do with it? where do i put it?
If someone could go through the steps & elaborate would be great, with a step by step guide of what to do where.
I'm completely new to coding & so far have been able to recognise the patterns & work it out for previous modules, but this is using a whole new tool with no instructions of how to use it.
Any help would be much appreciated
Thanks
I'm new to this area & finding the instructions in this unit very thin on the ground. I haven't even got to the challenge yet, I'm trying to follow along in the unit example.
It links to these instuctions to follow from GitHub:
Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
Enable Dev Hub in your Trailhead Playground
Install Salesforce CLI
Install Visual Studio Code
Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
If you haven't already done so, authenticate with your hub org and provide it with an alias (myhuborg in the command below):
sfdx force:auth:web:login -d -a myhuborg
Clone the repository:
git clone https://github.com/trailheadapps/ebikes-lwc cd ebikes-lwc
Create a scratch org and provide it with an alias (ebikes in the command below):
sfdx force:org:create -s -f config/project-scratch-def.json -a ebikes
Push the app to your scratch org:
sfdx force:source:push
Assign the ebikes permission set to the default user:
sfdx force:user:permset:assign -n ebikes
Load sample data:
sfdx force:data:tree:import --plan ./data/sample-data-plan.json
Open the scratch org:
sfdx force:org:open
In Setup, under Themes and Branding, activate the Lightning Lite theme.
In App Launcher, select the E-Bikes app.
I'm afraid I need a bit more direction at this point, like clone a repository, cool there's a link, what do i do with it? where do i put it?
If someone could go through the steps & elaborate would be great, with a step by step guide of what to do where.
I'm completely new to coding & so far have been able to recognise the patterns & work it out for previous modules, but this is using a whole new tool with no instructions of how to use it.
Any help would be much appreciated
Thanks
https://rajvakati.com/2018/12/22/lightning-web-components/
Just open CLI that you already installed in your machine.
Execute commands in CLI
git clone https://github.com/trailheadapps/ebikes-lwc
cd ebikes-lwc
above are two different commands. One is for cloning and second one is for entering into ebikes-lwc directory.
Next execute all commands one by one and follow the instructions,
https://github.com/trailheadapps/ebikes-lwc#installing-e-bikes-using-salesforce-dx
You can execute these commands in Terminal in Visual Studio also.
Ctrl+Shift+P ==> type Focus Terminal ==> select and press enter
it will open terminal for executing commands
Please mark it as best answer if you find solution in it.
then execute all commands from step:2 , which are given in that reference link. check below screenshot
don't foget to mark it as best answer if your query is solved.
have the same problem here !! unable to clone the repo using the command line : git clone https://github.com/trailheadapps/ebikes-lwc
here is the screen shot:
It is in french :) ..translation_ git is not recognized as an internal or external command, an executable program or commands file !!
Thanks for your help