Frontend Workshop from HTML/CSS/JS to TypeScript/React/Redux
Перейти к файлу
Ken fe39db85ef enables react-profiler 2019-03-04 19:36:44 -08:00
.vscode adding a recommended extension of prettier 2019-02-28 09:56:04 -08:00
assets fixing up step 2.7 demo 2019-03-03 20:14:51 -08:00
bonus-jest fixing relative links 2019-03-04 19:01:59 -08:00
bonus-servicecalls/demo fixing relative links 2019-03-04 19:01:59 -08:00
markdownReadme/src fixing relative links 2019-03-04 19:01:59 -08:00
playground playground using codesandbox 2019-03-03 20:30:36 -08:00
server [Server] Send HTTP response after processing request. 2019-02-25 12:12:11 -08:00
step1-01 tweak recipe 2019-03-04 07:20:58 -08:00
step1-02 css tweaks 2019-03-03 21:51:15 -08:00
step1-03 Merge branch 'master' into fix/readme-typo 2019-03-03 18:28:40 -08:00
step1-04 wrapped up step4 2019-03-03 22:26:18 -08:00
step1-05 readme cleanup 2019-03-03 21:35:32 -08:00
step1-06 No more AppTodo 2019-03-04 15:38:03 -08:00
step1-07 readme cleanup 2019-03-03 21:35:32 -08:00
step2-01 fixing relative links 2019-03-04 19:01:59 -08:00
step2-02 fixing relative links 2019-03-04 19:01:59 -08:00
step2-03 fixing relative links 2019-03-04 19:01:59 -08:00
step2-04 fixing relative links 2019-03-04 19:01:59 -08:00
step2-05 got rid of extra link 2019-03-04 19:04:18 -08:00
step2-06 fixing relative links 2019-03-04 19:01:59 -08:00
.gitignore checking in docs for github.io page 2019-02-19 23:41:11 -08:00
LICENSE Fixing license 2019-02-27 08:40:29 -08:00
LICENSE-CODE Fixing license 2019-02-27 08:40:29 -08:00
README.md Add note about checking for updates 2019-03-04 15:48:22 -08:00
azure-pipelines.pr.yml getting rid of some typo 2019-02-25 21:54:48 -08:00
azure-pipelines.yml revert 2019-02-25 21:51:33 -08:00
index.html adding bonus content for jest 2019-03-04 11:36:08 -08:00
jest.config.js adding enzyme test 2019-02-24 14:02:44 -08:00
jest.setup.js adding enzyme test 2019-02-24 14:02:44 -08:00
package-lock.json get rid of audit warnings 2019-03-04 09:41:52 -08:00
package.json get rid of audit warnings 2019-03-04 09:41:52 -08:00
prettier.config.js adding some redux steps 2019-02-16 17:00:47 -08:00
tsconfig.json fixing the tsconfig to exclude docs/ dir 2019-02-20 11:13:16 -08:00
webpack.config.js enables react-profiler 2019-03-04 19:36:44 -08:00

README.md

Frontend Bootcamp / Days in the Web

🚨🚨 This project is a work in progress! Issues and pull requests are encouraged. 🚨🚨

Welcome

In this two-day workshop you'll learn the basics of frontend development while building a working web app.

The first day provides an introduction to the fundamentals of the web: HTML, CSS and JavaScript. This is targeted at new and experienced developers alike. On the second day we'll dive into more advanced topics like TypeScript, testing, and state management. While the examples should be accessible to anyone, you'll get the most out of it if you have some prior experience with programming and web technologies.

Getting set up

1. Required software

Before starting, make sure your computer has up-to-date versions of the following installed:

2. Installing and opening the project

  • Open VS Code and then press ctrl + ~ to open the built in terminal
  • Use the cd (change directory) command to find an appropriate place for your code
  • Type git clone https://github.com/Microsoft/frontend-bootcamp.git into the terminal, this will pull down a copy of the workshop code
  • Type cd frontend-bootcamp to change your current directory to the bootcamp folder
  • Type npm install to install of the project dependencies
  • Type code ./ to open the bootcamp code in VS Code

If on a Mac, be sure you've followed these steps first to make the code command available.

3. Run the "inner loop" build

Now that we have VS Code open with the bootcamp code, open the terminal again ctrl + ~ and your project should look like this

To run the dev "inner loop" for the first 3 lessons type:

npm run static

When we get to lesson 4, and React we will stop the static inner loop and start:

  1. press ctrl + c to stop the static inner loop
npm run start

Both of these above commands will load the following site:

What to Expect

Day one

Day one is going to cover the basics of HTML, CSS and JavaScript, as well as an introduction to React and Typescript.

How we'll work

The format of this day is the following:

  1. I will walk through some demo code to teach some core concepts about the topic. Don't worry about writing code at this point. Just follow along via the readme's listed below.
  2. In the excercise portion return to VS Code and open the 'exercise' folder for the given exercise. The demo folder will include a README file with directions and a link to the demo page.

Course Material

  1. Introduction to HTML, CSS and JavaScript
  2. Writing a Todo App: HTML and CSS
  3. Writing a Todo App: JavaScript
  4. React Introduction
  5. Building a Static Page
  6. State Driven UI
  7. Types & UI Driven State

Day two

The demos and exercises for today are combined.

  1. Introduction to TypeScript
  2. UI Fabric Component Library
  3. Theming and Styling
  4. Testing with Jest
  5. Redux: Reducers
  6. Redux: Dispatching Actions and Examining State
  7. Redux: Stores and Dispatch
  8. Redux: Combining Reducers
  9. Redux: Thunk Middleware

Additional resources

Follow the authors!

If you are interested in JavaScript, TypeScript, React, Redux, or Design Systems, follow us on Twitter:

Other projects from the UI Fabric team at Microsoft

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.

Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653.

Privacy information can be found at https://privacy.microsoft.com/en-us/

Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.