I learned how to do full-stack web development and coding on the iPad Pro 2020 and I'm very excited to share my experiences along with a short coding tutorial on how to create a NodeJS + VueJS app.
What is going on everyone?
Welcome back to my channel.
My name is Jossie Lin J.
For those of you all who are new here,
welcome, glad to have you here.
So if you decided to click on this video,
it's either because you have an iPad Pro
and you're interested in doing programming with it,
or you're in the market for an iPad Pro
and they're pretty expensive,
you need something to convince you
that it's worth the price,
or you really like the thumbnail.
Either way, I'm glad to have you here.
Thoroughly enjoy using the iPad Pro
and not just for watching YouTube videos
or Netflix, consuming content,
but using it as a replacement for my laptop
for lightweight tasks like writing emails,
responding to text messages,
writing notes and photo editing.
But here's the thing.
We know that the iPad Pro can replace your laptop,
but one interesting capability
that this device has to offer
is its web development capabilities.
To be honest with you,
I didn't buy this 2020 iPad Pro 11-inch to do programming.
I really just bought it as an extra device
to not only consume media,
but to also do some content creation,
some workflow stuff, and to use it for notes.
However, there are some great applications out there
that allow you to do web development
that range in pricing from free to around $30.
I really wouldn't pay more
if there are apps that cost more than that.
But these applications give you the ability
to do web development,
and they have integration with GitHub.
Okay, so now that we talked about the iPad Pro,
let's take a quick dive into Node.js
before I show you how to build a simple application
with Play.js.
There's been a constant increase in enterprises
adopting this model of responsive web development
to optimize the experience and the accessibility
along with the performance of a web application.
So nowadays, it's essential for a web developer
to be proficient in CSS, HTML, and JavaScript.
Sometimes you have developers
that feel really proficient in one or the other,
like CSS slash HTML, but not really JavaScript
or vice versa, those backend Node.js developers.
The main point of this video really is to show you
how you can create a web application with Node.js.
Node.js is a server-side JavaScript language,
and traditionally, JavaScript has been executed
through a web browser such as Google Chrome,
Safari, and Firefox.
So when comparing client JavaScript versus Node.js,
client JavaScript, which is the more traditional way
of executing JavaScript,
it executes JavaScript through the browser,
whereas Node.js executes JavaScript through the computer.
I wanna take a moment to talk about Vue.js briefly
since we're gonna be building our project
off of a Node.js slash Vue.js template.
Vue.js is a progressive JavaScript framework
for building modern user interfaces.
The core component or library is primarily focused
on the Vue, so instead of having three files,
a CSS file, a HTML file, and a JavaScript file,
you'll have a script tag, a style tag,
and you'll have a template tag where you'll have
all your HTML in one Vue component.
This may not make a ton of sense right now,
but I promise it'll make perfect sense in a few moments.
Vue.js is very small and lightweight.
It's pretty easy to pick up.
I like the fact that you have one file
that hosts all of your web development.
So you have your four lifecycle hooks
inside your script tag.
You have your styling and your style tag,
and you have your HTML in the template tag.
So it's pretty easy to pick up,
especially if you have understanding
of JavaScript, HTML, and CSS.
Other powerful capabilities that Vue.js offers
is its capable single-page application usage,
along with being able to build components,
register components, and build reusable components.
So the first thing you wanna do is go to the App Store
and install play.js.
It does cost $5, but it's worth every penny, in my opinion.
After you've installed the application,
you wanna click the plus button and enter a project name.
And then under the Type section,
click the dropdown and select node.js plus vue.js template,
then click Create.
So you're going to see an index.js file,
but we can ignore that.
And what you need to do now is open your app.vue file
and hello world.vue file.
You can find these files by selecting the Files icon
at the top of the left navigation bar.
Then select Components,
and you'll see the hello world.vue file.
So now that we have that open, select the Files icon again,
then select the folder with the two dots.
This will move you up a level in the directory
where the app.vue file is.
When you create a Vue.js project,
it always comes packaged with starter code
to get you started and to give you a basic understanding
of how the source code is organized
and how the framework works.
Now select the Play button in the bottom left,
which is where the debug window is.
That'll tell you the status of your app.
So if you have any errors,
it'll let you know in that window.
Select Resolve Modules.
This will take a few moments.
Once the modules are resolved,
you can expand the debug window
and see that your app compiled successfully.
Okay, now my favorite part,
viewing your Vue.js application.
Select the globe in the bottom right of the app
within the same debug window.
This will serve your app to the browser.
You should see a welcome to your Vue.js app.
Congratulations, you served your first Vue.js app
on the iPad Pro.
Okay, so now that we got that done,
we're gonna be doing a little bit of coding
so you can get comfortable with Vue.js
and the app Play.js along with some basic web development.
For the sake of not making this video incredibly long,
I'm gonna be fast forwarding through most of the code,
but I promise all the really important things
I'll be sure to talk about.
The main purpose of this video
is for you to get started with Vue.js
and the Play.js application.
That way, you can work on web development
using modern JavaScript frameworks.
Okay, so the first thing you'll notice is the Vue.js logo
and some hyperlinks underneath the logo.
Everything but the logo is actually created
in another component, which is the Hello World component.
Remember, when I talked about being able
to pass a component to other components,
this is an example of that.
So in the Hello World component,
you see there's some HTML, a script tag, and a style tag.
And the first thing we wanna do
is rename this component to header.
So the first thing we're gonna do
is go back to the app.vue file
and change the import name from Hello World to header
along with the component name.
Vue.js is going to throw an error.
Don't worry, it's because we haven't changed the name
of the Hello World file to header.
Now change the tag name and the template HTML
in the app.vue file from Hello World to header.
That's all we have to do within the app.vue file.
Go back to the Hello World file
and change the name to header.
This is the component we'll be spending 90% of our time
writing the code.
Also make sure to change the name of the header component
in the script section from Hello World to header.
This is important because this will be the name
of the tag we call in the app.vue file.
Once that is done, delete everything within the template
besides the highest level div class, hello,
and the h1 with the message property
inside the curly braces.
Now go back to the app.vue file and delete the image.
You should see the welcome to your Vue.js app h1.
Okay, now the fun part, like I mentioned,
I'm gonna fast forward through most of this.
And if you're interested in learning more
about JavaScript frameworks like Vue, Angular, React,
along with more web development stuff with CSS and HTML
or technologies, not stuff,
be sure to give this video a thumbs up
and comment down below, code with me.
That will help me greatly in terms of knowing
what type of videos to make
and it helps with the YouTube algorithm.
Oh, and one more thing.
If your app performs poorly,
probably just need to like restart it.
I know mine was,
but maybe that's because I was like uploading a YouTube
video along with recording the screen.
But if you notice that your app is being slow
and maybe the local host isn't working,
isn't showing your app,
then I would recommend rebooting it.
Now we're gonna just be focusing on CSS and HTML.
All right, we got a sweet looking plant app.
We use some display flex with CSS.
We created a property
and we pass that property to a component.
Hope you all enjoyed this video.
Give it a thumbs up if you enjoyed it at all,
or if you're still here,
comment down below some of your favorite technologies
that allow you to do development on the iPad Pro.
Subscribe to the channel if you haven't already.
I love for you all to become a part of this community
and as always have a blessed rest of your week.
I'll see you all soon.
Peace.