Course title: Frontend and API Performance
Course covering on all technologies for modern web development with focus on performance.
Author: Mikhail Kuznetcov
Lessons:
- Introduction to web performance
- Course intro | CRP | Web vitals | Tools
Course title: Frontend and API Performance
Course covering on all technologies for modern web development with focus on performance.
Author: Mikhail Kuznetcov
Lessons:
/************** | |
Lecture 1 | |
/**************/ | |
/************** | |
Lecture 2 | |
/**************/ | |
/************** | |
Lecture 3 |
#!/bin/sh | |
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | |
case `uname` in | |
*CYGWIN*) basedir=`cygpath -w "$basedir"`;; | |
esac | |
if [ -z "$NODE_PATH" ]; then | |
export NODE_PATH="<some_path>common/cli/node_modules:<some_path>common/node_modules:<some_path>node_modules:<some_path>/node_modules:<some_path>node_modules:/Users/node_modules:/node_modules:<some_path>Library/pnpm/global/5/.pnpm/node_modules" | |
else |
Есть 2 основных варианта
Мы пока будем использовать 1-ый вариант и можно будет перейти на 2-ой после docker и spa. Но если вы сразу настроите 2-ой вариант будет супер
Это пример сложной настройки https://www.digitalocean.com/community/tutorials/how-to-build-a-modern-web-application-to-manage-customer-information-with-django-and-react-on-ubuntu-18-04-ru
Vuex (~Redux), 2017 | |
----- | |
- общее дерево стейта | |
Actions | |
Mutations | |
Actions -> Mutations | |
Component -> Mutations |
## Варианты: | |
- повторить известное приложение или из предложенного списка (например игру или IG или что то еще) - UI/UX | |
- задачи из рабочего проекта (часть страниц сущ приложения / новое приложение) - .. | |
- pet-project (Saas, geo-chat) - UI/UX | |
- новая технология (gRPC, websockets, ...) - ... | |
##Этапы: | |
- введение |
// fetch('https://jsonplaceholder.typicode.com/posts/1') | |
// .then(response => response.json()) | |
// .then(json => console.log(json)) | |
// fetch('https://jsonplaceholder.typicode.com/todos/1') | |
// fetch('https://jsonplaceholder.typicode.com/todos/1', { | |
// headers: {}, | |
// method: 'POST', |
// see article with examples in JAVA here: https://dzone.com/articles/design-patterns-the-strategy-and-factory-patterns | |
// example for educational purposes shownig close and mature syntax of modern TypeScript | |
enum AccountTypes {CURRENT, SAVINGS, HIGH_ROLLER_MONEY_MARKET, STANDARD_MONEY_MARKET} | |
//////////////////////////////////////// | |
/// the interface that is used by the strategy | |
//////////////////////////////////////// | |
interface InterestCalculationStrategy { |
Создать Vue приложение с даннýми | |
links: [/* any url */] | |
● Сделатþ компонент my-link, которýй полуùает | |
свойство url и вýводит ÿлемент | |
<a href="...">...</a> | |
● Напиúите в ùат / приúлите ссýлку | |
https://codesandbox.io/s/nifty-dream-22vqf3?file=/src/App.vue |