function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lucy Monk 3Lucy 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
Raj VakatiRaj Vakati
Please refer this link where I explain step by steps 

https://rajvakati.com/2018/12/22/lightning-web-components/
Lucy Monk 3Lucy Monk 3
Thanks, do you have the instructions to the "Push Lightning Web Component Files" unit with the eBikes example instead of the helloWorld example please?
Tulasiram ChippalaTulasiram Chippala
Hi Lucy Monk,

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.
 
Tulasiram ChippalaTulasiram Chippala
first create trail-comp project using sfdx:create project
then execute all commands from step:2 , which are given in that reference link. check below screenshotUser-added image

don't foget to mark it as best answer if your query is solved.
Tarik Benjelloun TouimiTarik Benjelloun Touimi
Hi all,

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:

User-added image
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
Sandeep Khandelwal 8Sandeep Khandelwal 8
@Tarik, you need to install Git on your local system!