├── .gitignore
├── LICENSE
├── README.md
├── deploy-sample.sh
├── deploy-todo.sh
├── frameworks
├── README.md
├── angular
│ ├── .editorconfig
│ ├── .gitignore
│ ├── README.md
│ ├── angular.json
│ ├── browserslist
│ ├── e2e
│ │ ├── protractor.conf.js
│ │ ├── src
│ │ │ ├── app.e2e-spec.ts
│ │ │ └── app.po.ts
│ │ └── tsconfig.json
│ ├── karma.conf.js
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ ├── app
│ │ │ ├── app.component.css
│ │ │ ├── app.component.html
│ │ │ ├── app.component.spec.ts
│ │ │ ├── app.component.ts
│ │ │ └── app.module.ts
│ │ ├── assets
│ │ │ └── .gitkeep
│ │ ├── environments
│ │ │ ├── environment.prod.ts
│ │ │ └── environment.ts
│ │ ├── favicon.ico
│ │ ├── index.html
│ │ ├── main.ts
│ │ ├── polyfills.ts
│ │ ├── styles.css
│ │ └── test.ts
│ ├── tsconfig.app.json
│ ├── tsconfig.json
│ ├── tsconfig.spec.json
│ └── tslint.json
├── react
│ ├── index.html
│ └── only-render.html
└── vue
│ └── index.html
├── images
├── age-of-vue.png
└── fastcampus-vue.png
├── pdf
└── tacademy-vue.pdf
├── quiz
├── components.html
├── event-emit.html
├── props.html
└── template.html
└── todo-app
└── answer.html
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Runtime data
9 | pids
10 | *.pid
11 | *.seed
12 | *.pid.lock
13 |
14 | # Directory for instrumented libs generated by jscoverage/JSCover
15 | lib-cov
16 |
17 | # Coverage directory used by tools like istanbul
18 | coverage
19 |
20 | # nyc test coverage
21 | .nyc_output
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Bower dependency directory (https://bower.io/)
27 | bower_components
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (https://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # TypeScript v1 declaration files
40 | typings/
41 |
42 | # Optional npm cache directory
43 | .npm
44 |
45 | # Optional eslint cache
46 | .eslintcache
47 |
48 | # Optional REPL history
49 | .node_repl_history
50 |
51 | # Output of 'npm pack'
52 | *.tgz
53 |
54 | # Yarn Integrity file
55 | .yarn-integrity
56 |
57 | # dotenv environment variables file
58 | .env
59 |
60 | # next.js build output
61 | .next
62 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Captain Pangyo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # T 아카데미 - Vue.js
2 |
3 | 이 리포지토리는 [T아카데미 Vue.js 수업](https://tacademy.skplanet.com/front/tacademy/courseinfo/campus.action?classIndex=1611)을 위한 리포지토리입니다.
4 |
5 | ## 수업 중 제작한 코드 및 퀴즈 답안 안내
6 |
7 | - 수업 중 제가 작성한 코드는 모두 [class](https://github.com/joshua1988/tacademy-vue/tree/class) 브랜치에 올라가 있습니다. 작성한 코드를 바로 확인하시고 싶다면 이 [링크](https://github.com/joshua1988/tacademy-vue/commit/e4a9a0b66e5752e836f5ef5316965712aa73d5b2)를 클릭하세요.
8 | - quiz 폴더의 답안을 [answer](https://github.com/joshua1988/tacademy-vue/tree/answer) 브랜치에 올렸습니다. 답안을 확인하시고 싶다면 이 [링크](https://github.com/joshua1988/tacademy-vue/commit/3a5895951d4375e2600325f2f32deaaa9ad918bd)를 클릭하세요.
9 |
10 | ## 수업 중 언급한 자료
11 |
12 | - [스택 오버 플로어 Brutal Lifecycle of JS Framework](https://stackoverflow.blog/2018/01/11/brutal-lifecycle-javascript-frameworks/)
13 | - [State of JS 2018](https://2018.stateofjs.com/front-end-frameworks/overview/)
14 | - [웹팩 핸드북](https://joshua1988.github.io/webpack-guide/)
15 | - [Babel 공식 문서](https://babeljs.io)
16 | - [Object.defineProperty() MDN 문서](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty)
17 | - [Vue.js Reactivity in Depth](https://vuejs.org/v2/guide/reactivity.html)
18 | - [MDN](https://developer.mozilla.org/ko/)
19 | - [Vue.js Developer](https://vuejsdevelopers.com)
20 | - [Google 웹 공식 기술 문서](https://developers.google.com/web/fundamentals)
21 | - [PWA 정리 블로그](https://joshua1988.github.io/web-development/pwa/io-2018-pwa/)
22 | - [ES6 입문서](https://joshua1988.github.io/es6-online-book/guide.html)
23 | - [Vue Template Explorer](https://template-explorer.vuejs.org)
24 | - [브라우저 동작 원리](https://www.html5rocks.com/en/tutorials/internals/howbrowserswork/#The_browsers_we_will_talk_about)
25 |
26 | ## 온라인 & 오프라인 강좌
27 |
28 | 어제 수업 이후 학습할 수 있는 온라인, 오프라인강의 여쭤보신 분들이 계셔서 아래에 정보 남깁니다 😄
29 |
30 | [Vue.js 학습 로드맵(인프런 온라인 강의)](https://www.inflearn.com/roadmaps/3)
31 |
32 |
33 |
34 |
35 |
36 | [패스트캠퍼스 Vue.js 오프라인 강의](https://www.fastcampus.co.kr/dev_camp_vue)
37 |
38 |
39 |
40 |
41 |
42 | ## 강의 개요
43 |
44 | - 주제 : 현대 프런트엔드 개발과 Do it! Vue.js
45 | - 일시 : 2019.09.25(수) 13시 ~ 18시, 총 5시간
46 | - 장소 : SK플래닛 T아카데미 (서울대연구공원단지내 SK연구동)
47 |
48 | ## 교과 과정
49 |
50 | | **시간** | **내용** | **소요 시간** |
51 | | :----------------: | :-----------------: | :-------: |
52 | | 13:00 ~ 14:00 | 현대 프런트엔드 개발 생태계 소개 | 1시간 |
53 | | 14:00 ~ 15:00 | Vue.js 핵심 기능 살펴보기 | 1시간 |
54 | | 15:00 ~ 16:00 | Vue.js 기본 문법 | 1시간 |
55 | | 16:00 ~ 17:00 | 웹 서비스 제작 | 1시간 |
56 | | 17:00 ~ 18:00 | 웹 서비스 배포 및 자가 학습 방법 | 1시간 |
57 |
58 | ## 개발 환경 구성
59 |
60 | - [Chrome](https://www.google.com/intl/ko/chrome/)
61 | - [Git](https://git-scm.com/downloads)
62 | - [Visual Studio Code](https://code.visualstudio.com/)
63 | - [Vue.js Dev Tools](https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)
64 | - [Node.js LTS 버전](https://nodejs.org/ko/)
65 |
66 | ## VSCode 플러그인 목록
67 |
68 | - 색 테마 : [Night Owl](https://marketplace.visualstudio.com/items?itemName=sdras.night-owl)
69 | - 파일 아이콘 테마 : [Material Icon Theme](https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme)
70 | - 뷰 확장 플러그인 : [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)
71 | - 뷰 코드 스니펫 : [Vue VSCode Snippets](https://marketplace.visualstudio.com/items?itemName=sdras.vue-vscode-snippets)
72 | - 문법 검사 : ESLint, [TSLint](https://marketplace.visualstudio.com/items?itemName=eg2.tslint)
73 | - 실습 환경 보조 : [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)
74 | - 기타
75 | - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode), [Project Manager](https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager), [Auto Close Tag](https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag), [GitLens](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens), [Atom Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.atom-keybindings), [Jetbrains IDE Keymap](https://marketplace.visualstudio.com/items?itemName=isudox.vscode-jetbrains-keybindings) 등
76 |
77 | ## 사전 학습 자료
78 |
79 | 웹 프로그래밍 기본
80 | - [HTML - MDN](https://developer.mozilla.org/en-US/docs/Web/HTML)
81 | - [CSS - MDN](https://developer.mozilla.org/en-US/docs/Web/CSS)
82 | - [Javascript - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
83 |
84 | 자바스크립트
85 | - [자바스크립트 기본 문법](https://joshua1988.github.io/web-development/javascript/javascript-basic-summary/)
86 | - [자바스크립트 동작 원리](https://joshua1988.github.io/web-development/translation/javascript/how-js-works-inside-engine/)
87 | - [자바스크립트 비동기 처리 이해하기](https://joshua1988.github.io/web-development/javascript/javascript-asynchronous-operation/)
88 |
89 | Vue.js
90 | - [Vue.js 입문서(블로그)](https://joshua1988.github.io/web-development/vuejs/vuejs-tutorial-for-beginner/)
91 | - [Vue.js 입문서(책)](http://www.yes24.com/Product/Goods/58206961?scode=032&OzSrank=1)
92 | - [Vue.js 시작하기(강의)](https://www.inflearn.com/course/Age-of-Vuejs#)
--------------------------------------------------------------------------------
/deploy-sample.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | # abort on errors
4 | set -e
5 |
6 | # 해당 소스 폴더로 이동
7 | cd samples
8 |
9 | # 깃 초기화 및 커밋 푸시
10 | git init
11 | git add -A
12 | git commit -m 'deploy vue.js sample code'
13 | git push -f https://github.com/joshua1988/tacademy-vue.git master:gh-pages
14 |
15 | cd -
--------------------------------------------------------------------------------
/deploy-todo.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | # abort on errors
4 | set -e
5 |
6 | # 해당 소스 폴더로 이동
7 | cd todo-app
8 |
9 | # 깃 초기화 및 커밋 푸시
10 | git init
11 | git add -A
12 | git commit -m 'deploy vue.js todo app'
13 | git push -f https://github.com/깃헙 유저 네임/tacademy-vue.git master:gh-pages
14 |
15 | cd -
--------------------------------------------------------------------------------
/frameworks/README.md:
--------------------------------------------------------------------------------
1 | ## Angular 시작하기
2 |
3 | 1. [공식 사이트 접속](https://angular.io/guide/setup-local)
4 | 2. 앵귤러 CLI 설치
5 |
6 | ```bash
7 | npm install -g @angular/cli
8 | ```
9 |
10 | 3. 앵귤러 프로젝트 생성
11 |
12 | ```bash
13 | ng new my-angular-app
14 | ```
15 |
16 | 4. 프로젝트 서버 실행
17 |
18 | ```bash
19 | cd my-angular-app
20 | ng serve --open
21 | ```
22 |
23 | 5. `app/app.component.ts`, `app/app.component.html` 파일 수정하여 `Hello World` 출력
24 |
25 | ## React 시작하기
26 |
27 | 1. 공식 사이트에 안내된 [사이트 접속](https://www.taniarascia.com/getting-started-with-react/)
28 | 2. 빈 폴더에 `index.html` 파일 생성 후 아래 내용 입력
29 |
30 | ```html
31 |
32 |
33 |
34 |
35 | Hello React!
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
59 |
60 |
61 | ```
62 |
63 | 3. [라이브 서버](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)로 화면 실행 후 결과 확인
64 |
65 | ## Vue.js 시작하기
66 |
67 | 1. [공식 사이트 접속](https://vuejs.org/v2/guide/#Getting-Started)
68 | 2. 빈 폴더에 `index.html` 파일 생성 후 아래 내용 작성
69 |
70 | ```html
71 |
72 |
73 |
74 |
75 |
76 |
77 | Hello Vue
78 |
79 |
80 |
81 | {{ str }}
82 |
83 |
84 |
85 |
93 |
94 |
95 | ```
96 |
97 | 3. 라이브 서버로 실행 후 결과 확인
98 |
--------------------------------------------------------------------------------
/frameworks/angular/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see https://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | max_line_length = off
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/frameworks/angular/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # compiled output
4 | /dist
5 | /tmp
6 | /out-tsc
7 | # Only exists if Bazel was run
8 | /bazel-out
9 |
10 | # dependencies
11 | /node_modules
12 |
13 | # profiling files
14 | chrome-profiler-events*.json
15 | speed-measure-plugin*.json
16 |
17 | # IDEs and editors
18 | /.idea
19 | .project
20 | .classpath
21 | .c9/
22 | *.launch
23 | .settings/
24 | *.sublime-workspace
25 |
26 | # IDE - VSCode
27 | .vscode/*
28 | !.vscode/settings.json
29 | !.vscode/tasks.json
30 | !.vscode/launch.json
31 | !.vscode/extensions.json
32 | .history/*
33 |
34 | # misc
35 | /.sass-cache
36 | /connect.lock
37 | /coverage
38 | /libpeerconnection.log
39 | npm-debug.log
40 | yarn-error.log
41 | testem.log
42 | /typings
43 |
44 | # System Files
45 | .DS_Store
46 | Thumbs.db
47 |
--------------------------------------------------------------------------------
/frameworks/angular/README.md:
--------------------------------------------------------------------------------
1 | # Angular
2 |
3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.0.
4 |
5 | ## Development server
6 |
7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8 |
9 | ## Code scaffolding
10 |
11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12 |
13 | ## Build
14 |
15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
16 |
17 | ## Running unit tests
18 |
19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20 |
21 | ## Running end-to-end tests
22 |
23 | Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24 |
25 | ## Further help
26 |
27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
28 |
--------------------------------------------------------------------------------
/frameworks/angular/angular.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3 | "version": 1,
4 | "newProjectRoot": "projects",
5 | "projects": {
6 | "angular": {
7 | "projectType": "application",
8 | "schematics": {},
9 | "root": "",
10 | "sourceRoot": "src",
11 | "prefix": "app",
12 | "architect": {
13 | "build": {
14 | "builder": "@angular-devkit/build-angular:browser",
15 | "options": {
16 | "outputPath": "dist/angular",
17 | "index": "src/index.html",
18 | "main": "src/main.ts",
19 | "polyfills": "src/polyfills.ts",
20 | "tsConfig": "tsconfig.app.json",
21 | "aot": false,
22 | "assets": [
23 | "src/favicon.ico",
24 | "src/assets"
25 | ],
26 | "styles": [
27 | "src/styles.css"
28 | ],
29 | "scripts": []
30 | },
31 | "configurations": {
32 | "production": {
33 | "fileReplacements": [
34 | {
35 | "replace": "src/environments/environment.ts",
36 | "with": "src/environments/environment.prod.ts"
37 | }
38 | ],
39 | "optimization": true,
40 | "outputHashing": "all",
41 | "sourceMap": false,
42 | "extractCss": true,
43 | "namedChunks": false,
44 | "aot": true,
45 | "extractLicenses": true,
46 | "vendorChunk": false,
47 | "buildOptimizer": true,
48 | "budgets": [
49 | {
50 | "type": "initial",
51 | "maximumWarning": "2mb",
52 | "maximumError": "5mb"
53 | },
54 | {
55 | "type": "anyComponentStyle",
56 | "maximumWarning": "6kb",
57 | "maximumError": "10kb"
58 | }
59 | ]
60 | }
61 | }
62 | },
63 | "serve": {
64 | "builder": "@angular-devkit/build-angular:dev-server",
65 | "options": {
66 | "browserTarget": "angular:build"
67 | },
68 | "configurations": {
69 | "production": {
70 | "browserTarget": "angular:build:production"
71 | }
72 | }
73 | },
74 | "extract-i18n": {
75 | "builder": "@angular-devkit/build-angular:extract-i18n",
76 | "options": {
77 | "browserTarget": "angular:build"
78 | }
79 | },
80 | "test": {
81 | "builder": "@angular-devkit/build-angular:karma",
82 | "options": {
83 | "main": "src/test.ts",
84 | "polyfills": "src/polyfills.ts",
85 | "tsConfig": "tsconfig.spec.json",
86 | "karmaConfig": "karma.conf.js",
87 | "assets": [
88 | "src/favicon.ico",
89 | "src/assets"
90 | ],
91 | "styles": [
92 | "src/styles.css"
93 | ],
94 | "scripts": []
95 | }
96 | },
97 | "lint": {
98 | "builder": "@angular-devkit/build-angular:tslint",
99 | "options": {
100 | "tsConfig": [
101 | "tsconfig.app.json",
102 | "tsconfig.spec.json",
103 | "e2e/tsconfig.json"
104 | ],
105 | "exclude": [
106 | "**/node_modules/**"
107 | ]
108 | }
109 | },
110 | "e2e": {
111 | "builder": "@angular-devkit/build-angular:protractor",
112 | "options": {
113 | "protractorConfig": "e2e/protractor.conf.js",
114 | "devServerTarget": "angular:serve"
115 | },
116 | "configurations": {
117 | "production": {
118 | "devServerTarget": "angular:serve:production"
119 | }
120 | }
121 | }
122 | }
123 | }},
124 | "defaultProject": "angular"
125 | }
--------------------------------------------------------------------------------
/frameworks/angular/browserslist:
--------------------------------------------------------------------------------
1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2 | # For additional information regarding the format and rule options, please see:
3 | # https://github.com/browserslist/browserslist#queries
4 |
5 | # You can see what browsers were selected by your queries by running:
6 | # npx browserslist
7 |
8 | > 0.5%
9 | last 2 versions
10 | Firefox ESR
11 | not dead
12 | not IE 9-11 # For IE 9-11 support, remove 'not'.
--------------------------------------------------------------------------------
/frameworks/angular/e2e/protractor.conf.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | // Protractor configuration file, see link for more information
3 | // https://github.com/angular/protractor/blob/master/lib/config.ts
4 |
5 | const { SpecReporter } = require('jasmine-spec-reporter');
6 |
7 | /**
8 | * @type { import("protractor").Config }
9 | */
10 | exports.config = {
11 | allScriptsTimeout: 11000,
12 | specs: [
13 | './src/**/*.e2e-spec.ts'
14 | ],
15 | capabilities: {
16 | 'browserName': 'chrome'
17 | },
18 | directConnect: true,
19 | baseUrl: 'http://localhost:4200/',
20 | framework: 'jasmine',
21 | jasmineNodeOpts: {
22 | showColors: true,
23 | defaultTimeoutInterval: 30000,
24 | print: function() {}
25 | },
26 | onPrepare() {
27 | require('ts-node').register({
28 | project: require('path').join(__dirname, './tsconfig.json')
29 | });
30 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
31 | }
32 | };
--------------------------------------------------------------------------------
/frameworks/angular/e2e/src/app.e2e-spec.ts:
--------------------------------------------------------------------------------
1 | import { AppPage } from './app.po';
2 | import { browser, logging } from 'protractor';
3 |
4 | describe('workspace-project App', () => {
5 | let page: AppPage;
6 |
7 | beforeEach(() => {
8 | page = new AppPage();
9 | });
10 |
11 | it('should display welcome message', () => {
12 | page.navigateTo();
13 | expect(page.getTitleText()).toEqual('Welcome to angular!');
14 | });
15 |
16 | afterEach(async () => {
17 | // Assert that there are no errors emitted from the browser
18 | const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19 | expect(logs).not.toContain(jasmine.objectContaining({
20 | level: logging.Level.SEVERE,
21 | } as logging.Entry));
22 | });
23 | });
24 |
--------------------------------------------------------------------------------
/frameworks/angular/e2e/src/app.po.ts:
--------------------------------------------------------------------------------
1 | import { browser, by, element } from 'protractor';
2 |
3 | export class AppPage {
4 | navigateTo() {
5 | return browser.get(browser.baseUrl) as Promise;
6 | }
7 |
8 | getTitleText() {
9 | return element(by.css('app-root h1')).getText() as Promise;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/frameworks/angular/e2e/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/e2e",
5 | "module": "commonjs",
6 | "target": "es5",
7 | "types": [
8 | "jasmine",
9 | "jasminewd2",
10 | "node"
11 | ]
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/frameworks/angular/karma.conf.js:
--------------------------------------------------------------------------------
1 | // Karma configuration file, see link for more information
2 | // https://karma-runner.github.io/1.0/config/configuration-file.html
3 |
4 | module.exports = function (config) {
5 | config.set({
6 | basePath: '',
7 | frameworks: ['jasmine', '@angular-devkit/build-angular'],
8 | plugins: [
9 | require('karma-jasmine'),
10 | require('karma-chrome-launcher'),
11 | require('karma-jasmine-html-reporter'),
12 | require('karma-coverage-istanbul-reporter'),
13 | require('@angular-devkit/build-angular/plugins/karma')
14 | ],
15 | client: {
16 | clearContext: false // leave Jasmine Spec Runner output visible in browser
17 | },
18 | coverageIstanbulReporter: {
19 | dir: require('path').join(__dirname, './coverage/angular'),
20 | reports: ['html', 'lcovonly', 'text-summary'],
21 | fixWebpackSourcePaths: true
22 | },
23 | reporters: ['progress', 'kjhtml'],
24 | port: 9876,
25 | colors: true,
26 | logLevel: config.LOG_INFO,
27 | autoWatch: true,
28 | browsers: ['Chrome'],
29 | singleRun: false,
30 | restartOnFileChange: true
31 | });
32 | };
33 |
--------------------------------------------------------------------------------
/frameworks/angular/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angular",
3 | "version": "0.0.0",
4 | "scripts": {
5 | "ng": "ng",
6 | "start": "ng serve",
7 | "build": "ng build",
8 | "test": "ng test",
9 | "lint": "ng lint",
10 | "e2e": "ng e2e"
11 | },
12 | "private": true,
13 | "dependencies": {
14 | "@angular/animations": "~8.2.0",
15 | "@angular/common": "~8.2.0",
16 | "@angular/compiler": "~8.2.0",
17 | "@angular/core": "~8.2.0",
18 | "@angular/forms": "~8.2.0",
19 | "@angular/platform-browser": "~8.2.0",
20 | "@angular/platform-browser-dynamic": "~8.2.0",
21 | "@angular/router": "~8.2.0",
22 | "rxjs": "~6.4.0",
23 | "tslib": "^1.10.0",
24 | "zone.js": "~0.9.1"
25 | },
26 | "devDependencies": {
27 | "@angular-devkit/build-angular": "~0.802.0",
28 | "@angular/cli": "~8.2.0",
29 | "@angular/compiler-cli": "~8.2.0",
30 | "@angular/language-service": "~8.2.0",
31 | "@types/node": "~8.9.4",
32 | "@types/jasmine": "~3.3.8",
33 | "@types/jasminewd2": "~2.0.3",
34 | "codelyzer": "^5.0.0",
35 | "jasmine-core": "~3.4.0",
36 | "jasmine-spec-reporter": "~4.2.1",
37 | "karma": "~4.1.0",
38 | "karma-chrome-launcher": "~2.2.0",
39 | "karma-coverage-istanbul-reporter": "~2.0.1",
40 | "karma-jasmine": "~2.0.1",
41 | "karma-jasmine-html-reporter": "^1.4.0",
42 | "protractor": "~5.4.0",
43 | "ts-node": "~7.0.0",
44 | "tslint": "~5.15.0",
45 | "typescript": "~3.5.3"
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/frameworks/angular/src/app/app.component.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joshua1988/tacademy-vue/e9b3d76b21776aff51f611e46354c65c578fa9dc/frameworks/angular/src/app/app.component.css
--------------------------------------------------------------------------------
/frameworks/angular/src/app/app.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{ title }}
4 |
--------------------------------------------------------------------------------
/frameworks/angular/src/app/app.component.spec.ts:
--------------------------------------------------------------------------------
1 | import { TestBed, async } from '@angular/core/testing';
2 | import { AppComponent } from './app.component';
3 |
4 | describe('AppComponent', () => {
5 | beforeEach(async(() => {
6 | TestBed.configureTestingModule({
7 | declarations: [
8 | AppComponent
9 | ],
10 | }).compileComponents();
11 | }));
12 |
13 | it('should create the app', () => {
14 | const fixture = TestBed.createComponent(AppComponent);
15 | const app = fixture.debugElement.componentInstance;
16 | expect(app).toBeTruthy();
17 | });
18 |
19 | it(`should have as title 'angular'`, () => {
20 | const fixture = TestBed.createComponent(AppComponent);
21 | const app = fixture.debugElement.componentInstance;
22 | expect(app.title).toEqual('angular');
23 | });
24 |
25 | it('should render title in a h1 tag', () => {
26 | const fixture = TestBed.createComponent(AppComponent);
27 | fixture.detectChanges();
28 | const compiled = fixture.debugElement.nativeElement;
29 | expect(compiled.querySelector('h1').textContent).toContain('Welcome to angular!');
30 | });
31 | });
32 |
--------------------------------------------------------------------------------
/frameworks/angular/src/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-root',
5 | templateUrl: './app.component.html',
6 | styleUrls: ['./app.component.css']
7 | })
8 | export class AppComponent {
9 | title = 'Hello World';
10 | }
11 |
--------------------------------------------------------------------------------
/frameworks/angular/src/app/app.module.ts:
--------------------------------------------------------------------------------
1 | import { BrowserModule } from '@angular/platform-browser';
2 | import { NgModule } from '@angular/core';
3 |
4 | import { AppComponent } from './app.component';
5 |
6 | @NgModule({
7 | declarations: [
8 | AppComponent
9 | ],
10 | imports: [
11 | BrowserModule
12 | ],
13 | providers: [],
14 | bootstrap: [AppComponent]
15 | })
16 | export class AppModule { }
17 |
--------------------------------------------------------------------------------
/frameworks/angular/src/assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joshua1988/tacademy-vue/e9b3d76b21776aff51f611e46354c65c578fa9dc/frameworks/angular/src/assets/.gitkeep
--------------------------------------------------------------------------------
/frameworks/angular/src/environments/environment.prod.ts:
--------------------------------------------------------------------------------
1 | export const environment = {
2 | production: true
3 | };
4 |
--------------------------------------------------------------------------------
/frameworks/angular/src/environments/environment.ts:
--------------------------------------------------------------------------------
1 | // This file can be replaced during build by using the `fileReplacements` array.
2 | // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
3 | // The list of file replacements can be found in `angular.json`.
4 |
5 | export const environment = {
6 | production: false
7 | };
8 |
9 | /*
10 | * For easier debugging in development mode, you can import the following file
11 | * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
12 | *
13 | * This import should be commented out in production mode because it will have a negative impact
14 | * on performance if an error is thrown.
15 | */
16 | // import 'zone.js/dist/zone-error'; // Included with Angular CLI.
17 |
--------------------------------------------------------------------------------
/frameworks/angular/src/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joshua1988/tacademy-vue/e9b3d76b21776aff51f611e46354c65c578fa9dc/frameworks/angular/src/favicon.ico
--------------------------------------------------------------------------------
/frameworks/angular/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello Angular
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/frameworks/angular/src/main.ts:
--------------------------------------------------------------------------------
1 | import { enableProdMode } from '@angular/core';
2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3 |
4 | import { AppModule } from './app/app.module';
5 | import { environment } from './environments/environment';
6 |
7 | if (environment.production) {
8 | enableProdMode();
9 | }
10 |
11 | platformBrowserDynamic().bootstrapModule(AppModule)
12 | .catch(err => console.error(err));
13 |
--------------------------------------------------------------------------------
/frameworks/angular/src/polyfills.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * This file includes polyfills needed by Angular and is loaded before the app.
3 | * You can add your own extra polyfills to this file.
4 | *
5 | * This file is divided into 2 sections:
6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
8 | * file.
9 | *
10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
13 | *
14 | * Learn more in https://angular.io/guide/browser-support
15 | */
16 |
17 | /***************************************************************************************************
18 | * BROWSER POLYFILLS
19 | */
20 |
21 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */
22 | // import 'classlist.js'; // Run `npm install --save classlist.js`.
23 |
24 | /**
25 | * Web Animations `@angular/platform-browser/animations`
26 | * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
27 | * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
28 | */
29 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
30 |
31 | /**
32 | * By default, zone.js will patch all possible macroTask and DomEvents
33 | * user can disable parts of macroTask/DomEvents patch by setting following flags
34 | * because those flags need to be set before `zone.js` being loaded, and webpack
35 | * will put import in the top of bundle, so user need to create a separate file
36 | * in this directory (for example: zone-flags.ts), and put the following flags
37 | * into that file, and then add the following code before importing zone.js.
38 | * import './zone-flags.ts';
39 | *
40 | * The flags allowed in zone-flags.ts are listed here.
41 | *
42 | * The following flags will work for all browsers.
43 | *
44 | * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
45 | * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
46 | * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
47 | *
48 | * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
49 | * with the following flag, it will bypass `zone.js` patch for IE/Edge
50 | *
51 | * (window as any).__Zone_enable_cross_context_check = true;
52 | *
53 | */
54 |
55 | /***************************************************************************************************
56 | * Zone JS is required by default for Angular itself.
57 | */
58 | import 'zone.js/dist/zone'; // Included with Angular CLI.
59 |
60 |
61 | /***************************************************************************************************
62 | * APPLICATION IMPORTS
63 | */
64 |
--------------------------------------------------------------------------------
/frameworks/angular/src/styles.css:
--------------------------------------------------------------------------------
1 | /* You can add global styles to this file, and also import other style files */
2 |
--------------------------------------------------------------------------------
/frameworks/angular/src/test.ts:
--------------------------------------------------------------------------------
1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2 |
3 | import 'zone.js/dist/zone-testing';
4 | import { getTestBed } from '@angular/core/testing';
5 | import {
6 | BrowserDynamicTestingModule,
7 | platformBrowserDynamicTesting
8 | } from '@angular/platform-browser-dynamic/testing';
9 |
10 | declare const require: any;
11 |
12 | // First, initialize the Angular testing environment.
13 | getTestBed().initTestEnvironment(
14 | BrowserDynamicTestingModule,
15 | platformBrowserDynamicTesting()
16 | );
17 | // Then we find all the tests.
18 | const context = require.context('./', true, /\.spec\.ts$/);
19 | // And load the modules.
20 | context.keys().map(context);
21 |
--------------------------------------------------------------------------------
/frameworks/angular/tsconfig.app.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "./out-tsc/app",
5 | "types": []
6 | },
7 | "files": [
8 | "src/main.ts",
9 | "src/polyfills.ts"
10 | ],
11 | "include": [
12 | "src/**/*.ts"
13 | ],
14 | "exclude": [
15 | "src/test.ts",
16 | "src/**/*.spec.ts"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/frameworks/angular/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": false,
3 | "compilerOptions": {
4 | "baseUrl": "./",
5 | "outDir": "./dist/out-tsc",
6 | "sourceMap": true,
7 | "declaration": false,
8 | "downlevelIteration": true,
9 | "experimentalDecorators": true,
10 | "module": "esnext",
11 | "moduleResolution": "node",
12 | "importHelpers": true,
13 | "target": "es2015",
14 | "typeRoots": [
15 | "node_modules/@types"
16 | ],
17 | "lib": [
18 | "es2018",
19 | "dom"
20 | ]
21 | },
22 | "angularCompilerOptions": {
23 | "fullTemplateTypeCheck": true,
24 | "strictInjectionParameters": true
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/frameworks/angular/tsconfig.spec.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "./out-tsc/spec",
5 | "types": [
6 | "jasmine",
7 | "node"
8 | ]
9 | },
10 | "files": [
11 | "src/test.ts",
12 | "src/polyfills.ts"
13 | ],
14 | "include": [
15 | "src/**/*.spec.ts",
16 | "src/**/*.d.ts"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/frameworks/angular/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "tslint:recommended",
3 | "rules": {
4 | "array-type": false,
5 | "arrow-parens": false,
6 | "deprecation": {
7 | "severity": "warning"
8 | },
9 | "component-class-suffix": true,
10 | "contextual-lifecycle": true,
11 | "directive-class-suffix": true,
12 | "directive-selector": [
13 | true,
14 | "attribute",
15 | "app",
16 | "camelCase"
17 | ],
18 | "component-selector": [
19 | true,
20 | "element",
21 | "app",
22 | "kebab-case"
23 | ],
24 | "import-blacklist": [
25 | true,
26 | "rxjs/Rx"
27 | ],
28 | "interface-name": false,
29 | "max-classes-per-file": false,
30 | "max-line-length": [
31 | true,
32 | 140
33 | ],
34 | "member-access": false,
35 | "member-ordering": [
36 | true,
37 | {
38 | "order": [
39 | "static-field",
40 | "instance-field",
41 | "static-method",
42 | "instance-method"
43 | ]
44 | }
45 | ],
46 | "no-consecutive-blank-lines": false,
47 | "no-console": [
48 | true,
49 | "debug",
50 | "info",
51 | "time",
52 | "timeEnd",
53 | "trace"
54 | ],
55 | "no-empty": false,
56 | "no-inferrable-types": [
57 | true,
58 | "ignore-params"
59 | ],
60 | "no-non-null-assertion": true,
61 | "no-redundant-jsdoc": true,
62 | "no-switch-case-fall-through": true,
63 | "no-use-before-declare": true,
64 | "no-var-requires": false,
65 | "object-literal-key-quotes": [
66 | true,
67 | "as-needed"
68 | ],
69 | "object-literal-sort-keys": false,
70 | "ordered-imports": false,
71 | "quotemark": [
72 | true,
73 | "single"
74 | ],
75 | "trailing-comma": false,
76 | "no-conflicting-lifecycle": true,
77 | "no-host-metadata-property": true,
78 | "no-input-rename": true,
79 | "no-inputs-metadata-property": true,
80 | "no-output-native": true,
81 | "no-output-on-prefix": true,
82 | "no-output-rename": true,
83 | "no-outputs-metadata-property": true,
84 | "template-banana-in-box": true,
85 | "template-no-negated-async": true,
86 | "use-lifecycle-interface": true,
87 | "use-pipe-transform-interface": true
88 | },
89 | "rulesDirectory": [
90 | "codelyzer"
91 | ]
92 | }
--------------------------------------------------------------------------------
/frameworks/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello React with Component
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
29 |
30 |
--------------------------------------------------------------------------------
/frameworks/react/only-render.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Hello React
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
22 |
--------------------------------------------------------------------------------
/frameworks/vue/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Hello Vue
8 |
9 |
10 |
11 | {{ str }}
12 |
13 |
14 |
15 |
23 |
24 |
--------------------------------------------------------------------------------
/images/age-of-vue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joshua1988/tacademy-vue/e9b3d76b21776aff51f611e46354c65c578fa9dc/images/age-of-vue.png
--------------------------------------------------------------------------------
/images/fastcampus-vue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joshua1988/tacademy-vue/e9b3d76b21776aff51f611e46354c65c578fa9dc/images/fastcampus-vue.png
--------------------------------------------------------------------------------
/pdf/tacademy-vue.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joshua1988/tacademy-vue/e9b3d76b21776aff51f611e46354c65c578fa9dc/pdf/tacademy-vue.pdf
--------------------------------------------------------------------------------
/quiz/components.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Quiz - Components
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
27 |
28 |
--------------------------------------------------------------------------------
/quiz/event-emit.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Quiz - Event Emit
8 |
9 |
10 |
15 |
16 |
17 |
43 |
44 |
--------------------------------------------------------------------------------
/quiz/props.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Quiz - Props
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
29 |
30 |
--------------------------------------------------------------------------------
/quiz/template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Quiz - Instance and Template
8 |
14 |
15 |
16 |
17 |
18 |
19 | App Title
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | Shopping List
28 |
29 |
30 | - Shoes
31 | - Shirts
32 | - Shorts
33 | - Pants
34 |
35 |
36 |
37 |
38 |
41 |
42 |
--------------------------------------------------------------------------------
/todo-app/answer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Vue Todo App
8 |
9 |
10 |
11 |
Todo App
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | -
20 | {{ todoItem }}
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
68 |
69 |
--------------------------------------------------------------------------------