commit 21b1b67bf62c96acc6298cf258d9511f8a50b9d9 Author: Jen Looper Date: Mon Nov 9 22:21:08 2020 -0500 moving folders diff --git a/Curriculum/README.md b/Curriculum/README.md new file mode 100644 index 00000000..55711cec --- /dev/null +++ b/Curriculum/README.md @@ -0,0 +1,59 @@ +# Web Development for Beginners - A Curriculum + +Azure Cloud Advocates at Microsoft are pleased to offer a 12-week, 24-lesson curriculum all about JavaScript, CSS, and HTML basics. Each lesson includes pre- and post-lesson quizzes, written instructions to complete the lesson, a solution, an assignment and more. Our project-based pedagogy allows you to learn while building, a proven way for new skills to 'stick'. + +[![Promo video](screenshot.png)](https://youtube.com/watch?v=kQyTzefCHxI "Promo video") + +> Click the image above for a video about the project and the folks who created it! + +## Pedagogy + +We have chosen two pedagogical tenets while building this curriculum: ensuring that it is project-based and that it includes frequent quizzes. By the end of this series, students will have built a typing game, a virtual terrarium, a 'green' browser extension, a 'space invaders' type game, and a business-type banking app, and will have learned the basics of JavaScript, HTML, and CSS along with the modern toolchain of today's web developer. + +By ensuring that the content aligns with projects, the process is made more engaging for students and retention of concepts will be augmented. We also wrote several starter lessons in JavaScript basics to introduce concepts, paired with video from the "[Beginners Series to: JavaScript](https://channel9.msdn.com/Series/Beginners-Series-to-JavaScript?WT.mc_id=github-webdev4beginners-cxa)" collection of video tutorials, some of whose authors contributed to this curriculum. + +In addition, a low-stakes quiz before a class sets the intention of the student towards learning a topic, while a second quiz after class ensures further retention. This curriculum was designed to be flexible and fun and can be taken in whole or in part. The projects start small and become increasingly complex by the end of the 12 week cycle. + +While we have purposefully avoided introducing JavaScript frameworks so as to concentrate on the basic skills needed as a web developer before adopting a framework, a good next step to completing this curriculum would be learning about Node.js via another collection of videos: "[Beginner Series to: Node.js](https://channel9.msdn.com/Series/Beginners-Series-to-Nodejs?WT.mc_id=github-webdev4beginners-cxa)". + +## Each lesson includes: + +- optional sketchnote +- optional supplemental video +- pre-lesson warmup quiz +- written lesson +- for project-based lessons, step-by-step guides on how to build the project +- knowledge checks +- a challenge +- supplemental reading +- assignment +- post-lesson quiz + +## Lessons + +| | Project Name | Concepts Taught | Learning Objectives | Linked Lesson | Written Lesson | Sketchnote | Assignment | Starting Quiz | Ending Quiz | Video | Author | +| :---: | :------------------------------------------------------------------------: | :------------------------------------------------------------------: | ----------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------: | :------------: | :--------: | :--------: | :-----------: | :---------: | :---: | :---------------------: | +| 01 | Getting Started | Introduction to Programming and Tools of the Trade | Learn the basic underpinnings behind most programming languages and about software that helps professional developers do their jobs | [Intro to Programming Languages and Tools of the Trade](../../../getting-started-lessons/tree/main/1-intro-to-programming-languages) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | Jasmine | +| 02 | Getting Started | Basics of GitHub, includes working with a team | How to use GitHub in your project, how to collaborate with others on a code base | [Intro to GitHub](../../../1-getting-started-lessons/tree/main/2-github-basics) | ✅ | ✅ | ✅ | ✅ | ✅ | 🛑 | Floor | +| 03 | Getting Started | Accessibility | Learn the basics of web accessibility | [Accessibility Fundamentals](../../../1-getting-started-lessons/tree/main/3-accessibility) | ✅ | ✅ | ✅ | ✅ | ✅ | 🛑 | Christopher | +| 04 | JS Basics | JavaScript Data Types | The basics of JavaScript data types | [Data Types](../../../2-js-basics/tree/main/1-data-types) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | Jasmine | +| 05 | JS Basics | Functions and Methods | Learn about functions and methods to manage an application's logic flow | [Functions and Methods](../../../2-js-basics/tree/main/2-functions-methods) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | Jasmine and Christopher | +| 06 | JS Basics | Making Decisions with JS | Learn how to create conditions in your code using decision-making methods | [Making Decisions](../../../2-js-basics/tree/main/3-making-decisions) | ✅ | | ✅ | ✅ | ✅ | ✅ | Jasmine | +| 07 | JS Basics | Arrays and Loops | Work with data using arrays and loops in JavaScript | [Arrays and Loops](../../../2-js-basics/tree/main/4-arrays-loops) | ✅ | | ✅ | ✅ | ✅ | ✅ | Jasmine | +| 08 | [Terrarium](../../../3-terrarium/tree/main/solution) | HTML in Practice | Build the HTML to create an online terrarium, focusing on building a layout | [Introduction to HTML](../../../3-terrarium/tree/main/1-intro-to-html) | ✅ | ✅ | ✅ | ✅ | ✅ | 🛑 | Jen | +| 09 | [Terrarium](../../../3-terrarium/tree/main/solution) | CSS in Practice | Build the CSS to style the online terrarium, focusing on the basics of CSS including making the page responsive | [Introduction to CSS](../../../3-terrarium/tree/main/2-intro-to-css) | ✅ | ✅ | ✅ | ✅ | ✅ | 🛑 | Jen | +| 10 | [Terrarium](../../../3-terrarium/tree/main/solution) | JavaScript Closures, DOM manipulation | Build the JavaScript to make the terrarium function as a drag/drop interface, focusing on closures and DOM manipulation | [JavaScript Closures, DOM manipulation](../../../3-terrarium/tree/main/3-intro-to-DOM-and-closures) | ✅ | ✅ | ✅ | ✅ | ✅ | 🛑 | Jen | +| 11 | [Typing Game](../../../4-typing-game/tree/main/solution) | Build a Typing Game | Learn how to use keyboard events to drive the logic of your JavaScript app | [Event-Driven Programming](../../../4-typing-game/tree/main/typing-game) | ✅ | 🛑 | ✅ | ✅ | ✅ | ✅ | Christopher | +| 12 | [Green Browser Extension](../../../5-browser-extension/tree/main/solution) | Working with Browsers | Learn how browsers work, their history, and how to scaffold the first elements of a browser extension | [About Browsers](../../../5-browser-extension/tree/main/1-about-browsers) | ✅ | ✅ | ✅ | ✅ | ✅ | 🛑 | Jen | +| 13 | [Green Browser Extension](../../../5-browser-extension/tree/main/solution) | Building a form, call and API and storing variables in local storage | Build the JavaScript elements of your browser extension to call an API using variables stored in local storage | [APIs, Forms, and Local Storage](../../../5-browser-extension/tree/main/2-forms-browsers-local-storage) | ✅ | 🛑 | ✅ | ✅ | ✅ | ✅ | Jen | +| 14 | [Green Browser Extension](../../../5-browser-extension/tree/main/solution) | Background processes in the browser, web performance | Use the browser's background processes to manage the extension's icon; learn about web performance and some optimizations to make | [Background Tasks and Performance](../../../5-browser-extension/tree/main/3-background-tasks-and-performance) | ✅ | 🛑 | ✅ | ✅ | ✅ | 🛑 | Jen | +| 15 | [Space Game](../../../6-space-game/tree/main/solution) | More Advanced Game Development with JavaScript | Learn about Inheritance using both Classes and Composition and the Pub/Sub pattern, in preparation for building a game | [Introduction to Advanced Game Development](../../../6-space-game/tree/main/1-introduction) | ✅ | 🛑 | ✅ | ✅ | ✅ | 🛑 | Chris | +| 16 | [Space Game](../../../6-space-game/tree/main/solution) | Drawing to canvas | Learn about the Canvas API, used to draw elements to a screen | [Drawing to Canvas](../../../6-space-game/tree/main/2-drawing-to-canvas) | ✅ | 🛑 | ✅ | ✅ | ✅ | 🛑 | Chris | +| 17 | [Space Game](../../../6-space-game/tree/main/solution) | Moving elements around the screen | Discover how elements can gain motion using the cartesian coordinates and the Canvas API | [Moving Elements Around](../../../6-space-game/tree/main/3-moving-elements-around) | ✅ | 🛑 | ✅ | ✅ | ✅ | 🛑 | Chris | +| 18 | [Space Game](../../../6-space-game/tree/main/solution) | Collision detection | Make elements collide and react to each other using keypresses and provide a cooldown function to ensure performance of the game | [Collision Detection](../../../6-space-game/tree/main/4-collision-detection) | ✅ | 🛑 | ✅ | ✅ | ✅ | 🛑 | Chris | +| 19 | [Space Game](../../../6-space-game/tree/main/solution) | Keeping score | Perform math calculations based on the game's status and performance | [Keeping Score](../../../6-space-game/tree/main/5-keeping-score) | ✅ | 🛑 | ✅ | ✅ | ✅ | 🛑 | Chris | +| 20 | [Space Game](../../../6-space-game/tree/main/solution) | Ending and restarting the game | Learn about ending and restarting the game, including cleaning up assets and resetting variable values | [The Ending Condition](../../../6-space-game/tree/main/6-end-condition) | ✅ | 🛑 | ✅ | ✅ | ✅ | 🛑 | Chris | +| 21 | [Banking App](../../../7-bank-project/tree/main/solution) | Layout and Route a Web Site | Learn how to create the scaffold of a multipage website's architecture using routing | [Layouts and Routes](../../../7-bank-project/tree/main/1-template-route) | ✅ | 🛑 | ✅ | ✅ | ✅ | ✅ | Yohan | +| 22 | [Banking App](../../../7-bank-project/tree/main/solution) | Build a Login and Registration Form | Learn about building forms and handing validation routines | [Forms](../../../7-bank-project/tree/main/2-forms) | ✅ | 🛑 | ✅ | ✅ | ✅ | ✅ | Yohan | +| 23 | [Banking App](../../../7-bank-project/tree/main/solution) | Methods of Fetching and Using Data | How data flows in and out of your app, how to fetch it, store it, and dispose of it | [Data](../../../7-bank-project/tree/main/3-data) | ✅ | 🛑 | ✅ | ✅ | ✅ | ✅ | Yohan | +| 24 | [Banking App](../../../7-bank-project/tree/main/solution) | Concepts of State Management | Learn how your app retains state and how to manage it programmatically | [State Management](../../../7-bank-project/tree/main/4-state-management) | | 🛑 | | | | | Yohan | diff --git a/Curriculum/screenshot.png b/Curriculum/screenshot.png new file mode 100644 index 00000000..fd36b389 Binary files /dev/null and b/Curriculum/screenshot.png differ diff --git a/bank/1-template-route/.github/post-lecture-quiz.md b/bank/1-template-route/.github/post-lecture-quiz.md new file mode 100644 index 00000000..fbed101a --- /dev/null +++ b/bank/1-template-route/.github/post-lecture-quiz.md @@ -0,0 +1,18 @@ +*Complete this quiz by checking one answer per question.* + +1. HTML templates are part of the DOM by default + +- [ ] true +- [ ] false + +2. Which part of the URL is needed for routing? + +- [ ] window.location.pathname +- [ ] window.location.origin +- [ ] both + +3. What's the name of the event triggered when calling the `history.pushState()` function? + +- [ ] `pushstate` +- [ ] `popstate` +- [ ] `navigate` \ No newline at end of file diff --git a/bank/1-template-route/.github/pre-lecture-quiz.md b/bank/1-template-route/.github/pre-lecture-quiz.md new file mode 100644 index 00000000..14dda65e --- /dev/null +++ b/bank/1-template-route/.github/pre-lecture-quiz.md @@ -0,0 +1,19 @@ +*A quick warm-up about web apps* + +*Complete this quiz in class.* + +1. You need to create multiple HTML files to display different screens in a web app + +- [ ] true +- [ ] false + +2. You can store and persist data locally in a web app + +- [ ] true +- [ ] false + +3. What's the best data provider for a web app? + +- [ ] A local database +- [ ] A JavaScript object +- [ ] A server with a JSON API \ No newline at end of file diff --git a/bank/1-template-route/README.md b/bank/1-template-route/README.md new file mode 100644 index 00000000..779b84a0 --- /dev/null +++ b/bank/1-template-route/README.md @@ -0,0 +1,293 @@ +# HTML Templates and Routes in a Web App + + + +## [Pre-lecture quiz](.github/pre-lecture-quiz.md) + +### Introduction + +Since the advent of JavaScript in browsers, websites are becoming more interactive and complex than ever. Web technologies are now commonly used to create fully functional applications that runs directly into a browser that we call [web applications](https://en.wikipedia.org/wiki/Web_application). As Web apps are highly interactive, users do not want to wait for a full page reload every time an action is performed. That's why JavaScript is used to update the HTML directly using the DOM, to provide a smoother user experience. + +In this lesson, we're going to lay out the foundations to create bank web app, using HTML templates to create multiple screens that can be displayed and updated without having to reload the entire HTML page. + +### Prerequisite + +You need a local web server to test the web app we'll build in this lesson. If don't have one, you can install [Node.js](https://nodejs.org) and use the command `npx lite-server` from your project folder. It will create a local web server and open your app in a browser. + +### Preparation + +On your computer, create a folder named `bank` with a file named `index.html` inside it. We'll start from this HTML [boilerplate](https://en.wikipedia.org/wiki/Boilerplate_code): + +```html + + + + + + Bank App + + + + + +``` + +--- + +## HTML templates + +If you want to create multiples screens for a web page, one solution would be to create one HTML file for every screen you want to display. However, this solution comes with some inconvenience: + +- You have to reload the entire HTML when switching screen, which can be slow. +- It's difficult to share data between the different screens. + +Another approach is have only one HTML file, and define multiple [HTML templates](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template) using the `