This intermediate course is designed for students who have a solid grasp of HTML, CSS, and basic JavaScript. It will expand your skills to build more dynamic and data-driven web applications by introducing advanced JavaScript concepts, server-side programming, and database integration. You will learn to create interactive experiences and manage data on the web.
Target Audience: Students who have completed an introductory web development course (e.g., HTML, CSS, and basic JavaScript) or possess equivalent foundational knowledge.
Proficiency in HTML5 and CSS3.
Solid understanding of JavaScript fundamentals (variables, data types, operators, conditionals, loops, functions, DOM manipulation, event handling).
Familiarity with using a code editor (e.g., VS Code) and browser developer tools.
Upon successful completion of this course, students will be able to:
Master advanced JavaScript features (ES6+), including asynchronous programming and modules.
Make HTTP requests to interact with external APIs.
Understand the fundamentals of server-side programming using a chosen language (e.g., Node.js or PHP).
Design and implement basic server-side routes and API endpoints.
Connect a server-side application to a relational database (e.g., MySQL).
Perform CRUD (Create, Read, Update, Delete) operations on database data from a web application.
Build dynamic web pages that fetch and display data from a server.
A computer (Windows, macOS, or Linux)
A modern web browser (e.g., Chrome, Firefox)
A code editor (VS Code recommended)
Node.js and npm (or PHP interpreter) installed
MySQL (or a similar relational database) installed and configured
A MySQL client (e.g., MySQL Workbench, DBeaver)
Internet connection
ES6+ Features Deep Dive:
let, const, arrow functions.
Template literals, destructuring (arrays and objects).
Spread and Rest operators.
Classes and Object-Oriented Programming (OOP) in JavaScript.
Modules (import/export).
Asynchronous JavaScript:
Understanding the Event Loop.
Callbacks (revisiting and understanding callback hell).
Promises: Promise.resolve(), Promise.reject(), Promise.all().
Async/Await: Simplifying asynchronous code.
Fetch API: Making HTTP requests to external APIs.
Hands-on Exercise: Refactor existing JavaScript code to use ES6+ features. Implement a simple data fetch from a public API (e.g., a weather API) using fetch and async/await to display data on a web page.
What is Server-Side Programming?
Client-side vs. Server-side.
Introduction to Node.js (JavaScript runtime) or PHP (server-side scripting language).
Setting up a basic server environment.
Introduction to a Server-Side Framework/Concepts:
For Node.js: Express.js basics (setting up a server, handling simple routes).
For PHP: Basic PHP syntax, superglobals ($_GET, $_POST), including files.
Handling HTTP Requests:
Understanding GET and POST requests.
Sending basic responses from the server (e.g., “Hello World”).
Hands-on Exercise: Set up a basic server using Node.js with Express or a simple PHP script. Create a few basic routes/pages that return static text or simple HTML.
Introduction to APIs:
What is an API? The concept of RESTful APIs.
JSON (JavaScript Object Notation) as a data exchange format.
Creating API Endpoints:
For Node.js/Express: Designing routes for data (e.g., /api/products, /api/users).
For PHP: Creating scripts that output JSON data.
Handling Request Bodies:
Parsing JSON data sent from the client.
Connecting Front-end to Backend:
Using JavaScript fetch from the client-side to interact with your own server-side API.
Displaying data fetched from your custom API on the front-end.
Hands-on Exercise: Extend your server-side application to create a simple API that returns a list of items (e.g., books, movies) as JSON. Use client-side JavaScript to fetch and display this data on your HTML page.
Database Fundamentals:
What is a database? Why do we use them?
Relational Databases vs. NoSQL Databases (brief overview).
Introduction to MySQL: Tables, rows, columns, primary keys, foreign keys.
SQL (Structured Query Language) Basics:
CREATE DATABASE, USE DATABASE.
CREATE TABLE.
INSERT INTO (adding data).
SELECT (retrieving data).
WHERE clause (filtering data).
Database Management Tools:
Introduction to a MySQL client (e.g., MySQL Workbench, command line).
Hands-on Exercise: Set up a MySQL database. Create a simple table (e.g., users or products). Insert some sample data and practice SELECT queries to retrieve specific information.
Connecting Server-Side to MySQL:
For Node.js: Using a MySQL client library (e.g., mysql2 or sequelize for ORM).
For PHP: Using PDO or mysqli extensions.
Implementing CRUD Operations with Database:
Create: Handling POST requests to insert new records into the database.
Read: Handling GET requests to fetch data from the database.
Update: Handling PUT/PATCH requests to modify existing records.
Delete: Handling DELETE requests to remove records.
Error Handling for Database Operations:
Basic strategies for handling database errors.
Hands-on Exercise: Modify your server-side API to connect to your MySQL database. Implement the CRUD operations for your chosen resource (e.g., users, products), allowing your API to interact with the database instead of in-memory data.
Full-Stack Integration:
Bringing it all together: Front-end (HTML/CSS/JS) communicating with your server-side API, which in turn interacts with the MySQL database.
Building a complete feature (e.g., a user registration form that saves to the database, a product listing page that fetches from the database and allows adding new items).
Form Submission & Data Validation (Basic):
Handling form submissions on the client-side.
Sending form data to the server.
Basic server-side validation.
Deployment Concepts (Brief Overview):
What is deployment?
Brief mention of hosting options for full-stack applications.
Course Review & Next Steps:
Recap of key concepts.
Q&A.
Paths forward: Front-end frameworks, advanced backend topics, authentication, security.
Weekly Coding Challenges/Exercises: Completion of practical tasks assigned in each session.
Mid-Course Mini-Project: A small project demonstrating API creation and consumption.
Final Project: A functional web application that integrates a front-end with a server-side API and a MySQL database, demonstrating CRUD operations.
Participation: Active engagement in discussions and problem-solving.