Hey everyone.
My name is Emily Rose.
I'm a lead developer evangelist here at Salesforce.
And I'm really excited to introduce to you Salesforce DX.
But before I can do that, we've gotta set the stage a little bit and
talk about the principles of modern software delivery.
We've had a lot of conversations with our customers.
We've spoken to developers, business users alike.
And we've gotten a lot of really great feedback about how
you're doing software development now.
And I think the seven main takeaways that we got is that it all starts from source.
It all starts with that version control system.
And that code and meta data is modular.
And the environments that you're developing in now must be ephemeral,
easy to create and destroy.
And in addition to that, all of the tools and
the processes must be centered around that continuous integration and delivery.
And, of course, development must be based on open standards and extensible as well.
But what does that look like with Salesforce DX?
Well here's what we've brought together for Salesforce DX.
We build together and we deliver continuously.
We've got that source-driven development, we've got team collaboration and
the continuous integration and delivery.
But I think the biggest point here is that everything in Salesforce DX is open,
collaborative, and it's enterprise ready out of the box.
So, in terms of specifics, what we've got here is; source driven development.
We've got the ephemeral scratch orgs that are easy to just spin up and
shut down as needed.
We've got the enhanced Salesforce CLI, which is very extensible and
can be used as part of your CI and CD pipeline.
And in addition to that, you're able to use all the IDEs or
text editors that you're familiar with.
So make all the choices you like there.
And of course, partial and full sand boxes are enabled as well.
So with that, let's jump into a demo.
Here I am in the command line terminal and
I want to give you a quick tour of Salesforce DX.
So what we're going to do We're going to create a lightning app
with Salesforce DX and then we'll push it out to our scratch org.
Where we can then modify it a little bit.
We're going to pull it back down into source, take a look at it, and
then we'll stop there.
But really, the end result would be for this scratch org to then to be used
you know pushed out to a sand box where it can be taken through a CI pipeline.
So here we are in the command line.
As you can see, I've created an application and
to take a look at what that would look like, you've got VS code here.
And so the layout is fairly minimal.
You've got a config folder,
that tells you a little bit about the shape of your scratch org.
You can define some orgPreferences and enable or disable certain features.
So, for now we're just going to leave it as is with the S1DesktopEnabled, also,
here is the sfdx-project.json.
And what this does, is allow you to define the paths for any additional packages that
you would like to add to this application, among other things.
But we're going to skip over that for the most part now.
And as you can see, the folder structure is pretty much empty right now.
We don't have any components for this application.
So the first step would be to add a component.
And you would do that with sfdx force:lightning:component:create.
And we're going to give it the name of DemoComponent.
And we have to tell it where this component needs to live.
Well that's going to be in our force-app/main/default/aura.
Once we give it that command it's going to scaffold everything we need for
that component.
So you can see now we have the DemoComp directory,
we've got the component, its meta data, its CSS.
And its controller helper and renderer.
So great.
Got that pretty much figured out.
But this isn't much of a component.
So what I'm going to do is I'm going to grab my other components.
I kind of pre-baked an example component here just to save us some time.
There, so let's take a look at what changes we've made here.
We can do that with sfdx force:source:status.
And what this does is it compares our local status with remote
status on the org.
And as you can see here, for the most part,
all we've really done is make some local changes,
we've added files, so let's push that up the org and see what that looks like.
We'll use the force source push command, and
this is going to push everything that we just created into the org.
So let's launch it,
and let's create a new app.
So here we are in Lightning App Builder, and we're going to create an app page,
just call this the demo app and 100 in right side bar is fine.
But as you can see here,
we've got that demo component that we created from source.
And we just added it right to the application, we can click save,
we'll activate it and then enable it for the sales app.
And then, once that's done we can head back and see in the sales app.
We've got that demo app now, it worked.
We just created a lightning component from source.
So great success.
That's pretty much all I wanted to show you for this brief tour.
As I mentioned, this is kind of just the beginning, but I wanted to give you
a glimpse into the modernized workflow that is possible with Salesforce DX.
All right. So with our demo concluded,
we're really excited to have everyone become a Salesforce DX trailblazer.
So ways you can get started.
We've got four badges already up on trailhead right now.
You can earn them right away.
If you're new to Git or
GitHub I would recommend starting with the GitHubs basic badge,
that will help you get the foundation Understanding of VCS, but that's not all.
you'll also, of course, need to actually get your Dev Hub enabled.
So there's two ways to do that.
One, if you have a production or business org, you can go into setup and
enable Dev Hub.
Or if you're not quite ready yet you can just enable it with the Trial Org.
So you can get the trial with Dev Hub installed, it's a 30 day trial.
But there'll be information on that as well.
So with that, thank you so much.
>> Emily Rose: Thank you for joining us, thank you for watching my video.
I hope you enjoyed, I hope you found it entertaining and informative.
And go forth and become a Salesforce DX trailblazer, thank you.