
This lecture is an introduction about me and about what we will be learning.
My name is Matei Nicolae, I’m a Technical Lead and Trainer in Web Development.
Live demo for 2 of the apps we will be building
we will analyze the sections of one website
we want to understand how to implement all CRUD operations in an Web app
For this Lecture we will need to install VSCode, our first free tool for editing code (IDE).
We will then create our folder and file structure where we will store our code.
Then we will start using first html tags to understand how they work.
In this lecture we will try to create our Skills (as list elements). Remember our CV I had shown you in the beginning, we want to reproduce it.
In this lecture we will try to create our Known Languages (as a table)
If you noticed, VSCode is trying to also indent our code, but it leaves the final choice to us… let's see what that means, and why we need it.
Intent means each child element will be aligned with few spaces to the right (usually with 2 or 4 spaces). This will help us identify faster where an element ends and also help us identify some problems in our code (will see this in next section)
And Prettier will help us to format the code each time we save our code.
Let's see how to configure it and what it does…
Manage > Settings > Search: "Default Formatter" -> Select: "Prettier - Code formatter"
Manage > Settings > Search: "Format On Save" -> Check it
Do this for User and / or for Workspace if needed.
In this lecture, I’d like to explain some problems you might encounter during your typing html code, and help you to see them. Usually we call this procedure troubleshooting.
Because we will have an online CV our visitors can interact with it, so let's do more about it and create a contact form for them.
We will create:
add links and image to our CV
Contact Form with Email, name, reason + Contact Us button
Inputs placeholders (attribute).
Different types of inputs (we will try to change some types).
Why we use the ‘name’ property. We will try to see how user data is submitted to the server, what in fact is submitted from our ‘form’.
In this Lecture, first, I’ll share my slides with you, and explain how you can access them any time, in the latest version (I’ll keep them uptodate).
The scope for this Lecture is to see how we can inspect any website and understand how they created their html content.
In this Lecture we only want to know how to style our elements directly from HTML, even though we can and will do it from css mostly. But there are also a lot of times where we have to change or override the style on elements, without external css
In the current lecture I’ll focus on creating a standard document and understand other parts from html we omitted initially.
Get rid of manual and boring ‘refresh’, each time we make a small change - will use Browser Sync Extension.
View / Command palette (default: CTRL + Shift + P)
Search for Browser Sync
Use "/" for relative path
HTML's role is to display and store content (or information) on the internet, while css helps us create and reuse styling we created for our information, this brings the same information but presented in a better way. In this lecture, I'll explain the 3 main concepts about css selectors and will try them all.
Homework:
create home page and use same css as other pages.
add a class for favorite skills and apply on 2 of them that class.
In this lecture we will combine those 3 simple selectors we just learned, and create more complex selectors. And as a result we will have a nice menu for our website.
In this lecture I’d like to show you more about how to inspect css from other websites, the same we did for inspect HTML.
We will see our missing css parts from the targeted website and copy only those properties that we understand why they are there and what they do.
We will also improve our menu, page and profile picture.
In this lecture we will learn how to create layouts using flexbox concepts from CSS.
We will create a new empty file layout.html that will have only the website skeleton for now.
In this lecture, we will combine the skeleton layout with our page. Now our page will look nice and arranged as all websites do.
In this lecture I’ll explain how Grid CSS layout works and live inspect the presentation to better understand the example from there.
In this lecture let’s try to create a 3 by 3 rubik's cube face.
We will start by creating our wrapper and all inside pieces using grid layout.
Before we move on to the JavaScript introduction, I'd like to make our CV look great and fix some of our css leftovers.
There are 3 interesting concepts that makes our HTML become Dynamic HTML (DHTML):
Change element content
Change element style
Listening to events
Combining these 3 knowledge we can do many interesting things.
In this lecture we will take a closer look at 3 types of variables: boolean, number, string. We will try to use the console to print those values and their type based on the value they have.
In this lecture we will see how to Create / Read and Update different objects type Array / JSON / DOM.
In this lecture I'll explain where we already used functions, how we can organize our code using functions… and why it is so important. Let's dive in and see how it works.
Let’s see how json objects are combined with functions.
In this lecture we will start our interactions with our menu, to hide and show different pages, based on user actions. We will use a linear and clear way in this example, using functions and element click events.
We will store the code on github, make sure you create your account and activated from your email.
Also make sure to use this pattern when create your repository:
{yourname}.github.io
This lecture will focus on daily git commands while we improve our code.
I made a small change on my github branches, replacing the ‘demo’ branch to ‘udemy’ which will be more clear for you where to follow my changes from now on.
In this particular lecture we will store the current page (activePage) as a global variable, a variable which we have to keep track of.
Now we want to listen to click events on all menu items from our top-menu-bar and identify the element we clicked on, instead of adding events for each of them.
Let’s see how to use querySelector to update active elements in the menu. We will use a more complex selector in this case… and we will create a helper function
If we think of a more dynamic page, where our skills or info about them could change more often, we need a way to separate them from the main page.
We will use json objects to store information about each skill, and also will display the skills in html in a more beautiful way.
In this lecture we will move data for our skills in an external file to make it easier to manage them. And will load them using the ‘fetch’ method.
In this lecture I'll show you how to use the Array.sort function to sort our skills.
Let’s review all the code we’ve created so far and see what we can improve.
Convert our code to use ES6 standard (const, let, arrow functions). Basic knowledge for hoisted function.
In many cases we have to deal with strings and we need to process them in many ways. In this short section, I’d like us to focus on some basic string functions, how to use them, and how to easily test them in the browser console. Strings contain information, and we have to understand it.
In this lecture I'd like to show you one app I’ve made to help my students test their knowledge and also learn from tests.
Try a JSON quiz, and explain how to better read that code.
Create a new repo, clone it, add html/css/js skeleton files with empty content and push the project to github.
Initialize a project to use prettier from the start, configure a prettier rc file, and enable vscode format on save while integrating git and GitHub for version control.
First we need to install node js which comes with npm package manager as well.
Initially, we will utilize several developer tool packages available on npm to assist us, such as webpack and other relevant resources. Let’s see them in action.
There are some small changes we have to make because we configured webpack to load our css and js but now our css is not applied and our js runs 2 times. Also we will install 2 global packages from npm: rimraf and serve
It's time to create a full html and css layout of our app (static parts), before we move on to js.
We will inspect the external application to see how it is implemented and we will copy required css rules or html elements.
Create a static table in HTML, define the header and body, and style it with CSS to add borders, padding, header colors, and alternating row colors.
We will be using js fetch to request external resources and print them in the console for now.
Is time to render loaded items into html, using array.map and string templates. We will also use function as a reference instead of function created inside map (as an argument/parameter).
In this lecture we will create the layout for our toolbar, having some elements on the left side and some on the right side.
This lecture will be about connecting our web app with a nodejs API that will serve the data for us.
We will create the last row with inputs to be able to insert new row values.
Documentation is important so we don’t have to leave it blank ?
Lets see how to create nice documentation pages to help others understand our project code or how to use it.
We will read all the input values, and create a json object to be used as an argument / parameter to create a team request (fetch).
Wait until the create team request completes before reloading the page, using promises and then chaining fetch to handle asynchronous operations and reflect the results.
Learn to remove a theme from a table using a delete button, pass the team id with data attributes, and perform a fetch delete request to API, handling the response.
Learn to edit a team: add an edit button, populate the form with the selected team using array.find, and update via a put request.
Fixes missing parts in the edit flow by clearing the edit id on reset, and displays the url as a clickable href link that opens in a new tab.
Learn to implement search for teams with an input field and array.filter, using a filterElements function to search promotion, members, name, or URL via toLowerCase and includes, then render results.
Master the ternary operator and logical not to work with true and false values, exploring empty strings, undefined, null, numbers, objects, and array helpers like map, filter, and reduce.
This lecture is focusing on the quality of our code… especially on functions we created.
Improve user experience for creating a team by updating the teams array and rendering instantly after a successful create, handling ids, and resetting the form to avoid full page reloads.
Improve the user experience for delete flow by updating the teams array and re-rendering the list without a page reload, using filter to remove the deleted team on success.
Explore how object references and mutations work in JavaScript, illustrating shared references in arrays and objects, push mutations, and difference between reference and value equality with practical examples.
Improve the renderTeams function by caching the last teams array and using array.every to avoid unnecessary re-renders, and extract the equality check as a pure function.
Master the spread operator and map to create new arrays, avoid mutation, and reliably render updates by copying arrays and appending elements with a pure function approach.
Learn how to clone and update JSON objects using spread syntax in object literals, merge properties when updating, and rerender all themes with map-based updates.
Discover how destructuring assignment simplifies accessing object and JSON properties, allows clean extraction of values in variables and function parameters, and helps avoid mutating original objects.
Master rest parameter through destructuring and spread to extract properties on the left side and collect the rest into a new object or array. See examples with person and grades.
Learn fetch and promises in depth, including how to use then, catch, and json, and how to create manual promises with resolve and reject.
Learn to use promises with then and arrow callbacks, convert code to async and await, and implement linear, readable data loading and rendering.
Learn to improve search experience by using lodash debounce to delay function calls, import only lodash/debounce to reduce bundle size, and configure a wait time such as 200 milliseconds.
Split code into multiple files by creating utilities and middleware modules, exporting functions, and importing them. Learn to centralize base urls and use template literals for clean, reusable requests.
Create a CSS loading mask to block a form during processing, using a loading mask class with :before and :after pseudo elements and a rotating animation.
Create a reusable loading mask by building generic mask and unmask utilities exported for use across the app, controlled by a selector for all requests.
Learn to build the static part for selecting multiple rows with checkboxes, add a remove button, and implement a select all column using HTML, CSS, and JavaScript.
Master how a top checkbox selects or unselects all related checkboxes using JavaScript, via querySelectorAll, event listeners, and iterating with forEach to apply the checked state.
Remove selected items by identifying checked checkboxes, collect IDs, issue parallel delete requests with Promise.allSettled, show a loading mask, and refresh the list with load teams.
Check all features we’ve done.
Remove consoles all over the places
build and demo scripts (publish)
Explore hands-on web development with practical homeworks, quizzes, and JavaScript projects on GitHub, using live previews to deepen programming skills and project familiarity.
We will learn the basic html & css concepts we need to know, we will discover the most important parts of web development, and will understand how they work, why they behave in that way. And after that we will be able to reproduce any parts of a web page.
I'll explain some css layouts (css layout, flexbox, grid layout), concepts so you could organize and create any layout or skeleton pages. Also if you wish to know better what are css selectors - I'll touch this topic as well.
You will be building 2 projects, where you will apply the knowledge we learn in the course.
We will build step by step both projects and you should be able to type the code I'm typing and see the results.
Pure JavaScript is vital so we have to take more time to understand how JS works, what are key concepts in this programming language. I'll explain all JS concepts you have to know to be able to start any web project and also understand others code in the future. Working with data and understand and create flows in our apoplications will be a big part of this course.
I'll teach you how to use VSCode as IDE Editor and how to save your code on GitHub. We will use basic git commands every programmer should know.
If you are a Backend developer that want to learn more about how to create your own web interfaces, this course could help you!
Few JavaScript keywords that I'll touch:
Array helpers, JSON, DOM, Events, callback, Promises, pure functions