Skip to content

Commit c4af71e

Browse files
committedAug 30, 2021
Add JavaScript pages
1 parent 01d5f7e commit c4af71e

13 files changed

+284
-19
lines changed
 

‎README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,22 @@ The online version is available at [everyday-cheatsheets.docs.devpro.fr](https:/
7272
* HashiCorp
7373
* [Terraform](./docs/hashicorp/terraform.md)
7474
* [Vagrant](./docs/hashicorp/vagrant.md)
75-
* JavaScript
75+
* [JavaScript](./docs/javascript/javascript.md)
7676
* [Angular](./docs/javascript/angular.md)
7777
* [Angular CLI](./docs/javascript/angular-cli.md)
78+
* [Angular events](./docs/javascript/angular-events.md)
7879
* [Cypress](./docs/javascript/cypress.md)
79-
* Node.js
80+
* [ECMAScript](./docs/javascript/ecmascript.md)
81+
* [Ionic](./docs/javascript/ionic.md)
82+
* [Node.js](./docs/javascript/nodejs.md)
83+
* [Express](./docs/javascript/express.md)
8084
* [NPM](./docs/javascript/npm.md)
8185
* [React](./docs/javascript/reactjs.md)
8286
* [React Native](./docs/javascript/react-native.md)
83-
* [TypeScript](./docs/typescript.md)
87+
* [Redux](./docs/javascript/redux.md)
88+
* [TypeScript](./docs/javascript/typescript.md)
89+
* [webpack](./docs/javascript/webpack.md)
90+
* [Yarn](./docs/javascript/yarn.md)
8491
* [Linux](./docs/linux/linux.md)
8592
* [CentOS](./docs/linux/centos.md)
8693
* [Ubuntu](./docs/linux/ubuntu.md)

‎SUMMARY.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
* Frameworks & libraries
6262
* [Angular](./docs/javascript/angular.md)
6363
* [Angular CLI](./docs/javascript/angular-cli.md)
64+
* [Angular events](./docs/javascript/angular-events.md)
6465
* [.NET](./docs/dotnet/dotnet.md)
6566
* [ASP.NET Core](./docs/dotnet/aspnetcore.md)
6667
* [Blazor](./docs/dotnet/blazor.md)
@@ -74,17 +75,23 @@
7475
* [WPF](./docs/dotnet/wpf.md)
7576
* Xamarin
7677
* [gRPC](./docs/grpc.md)
77-
* Node.js
78+
* [Ionic](./docs/ionic.md)
79+
* [Node.js](./docs/nodejs.md)
80+
* [Express](./docs/javascript/express.md)
7881
* [NPM](./docs/npm.md)
7982
* [React](./docs/javascript/reactjs.md)
8083
* [React Native](./docs/javascript/react-native.md)
84+
* [Redux](./docs/javascript/redux.md)
8185
* [Symfony](./docs/php/symfony.md)
8286
* Languages
8387
* [C#](./docs/dotnet/csharp.md)
8488
* [C# 8.0](./docs/dotnet/csharp80.md)
89+
* [ECMAScript](./docs/javascript/ecmascript.md)
8590
* [Go](./docs/go.md)
8691
* [GraphQL](./docs/graphql.md)
87-
* JavaScript
92+
* [JavaScript](./docs/javascript/javascript.md)
93+
* [webpack](./docs/javascript/webpack.md)
94+
* [Yarn](./docs/javascript/yarn.md)
8895
* [MS-DOS](./docs/windows/ms-dos.md)
8996
* [PHP](./docs/php/php.md)
9097
* [Python](./docs/python.md)

‎docs/javascript/angular-cli.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@ Version | Date | More
88
------- | ---- | ----
99
12.0 | | [ninja squad](https://blog.ninja-squad.com/2021/05/12/angular-cli-12.0/)
1010

11+
### Setup
12+
13+
```bash
14+
# install the CLI globally
15+
npm install -g @angular/cli
16+
```
17+
1118
## Recipes
1219

13-
### Protractor to Cypress migration
20+
### Migrate from Protractor to Cypress
1421

1522
* [ninja squad](https://blog.ninja-squad.com/2021/05/05/migrating-from-protractor-to-cypress/)
1623

17-
### TSLint to ESLint migration
24+
### Migrate from TSLint to ESLint
1825

1926
* [ninja squad](https://blog.ninja-squad.com/2021/03/31/migrating-from-tslint-to-eslint/)

‎docs/javascript/angular-events.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Angular events
2+
3+
### AngularConnect 2019
4+
5+
[AngularConnect](https://www.angularconnect.com/) - London, UK - 19 & 20 September - [Twitter](https://twitter.com/AngularConnect)
6+
7+
Excellent summary: [All Talks](https://nitayneeman.com/posts/all-talks-from-angular-connect-2019/)
8+
9+
Videos:
10+
11+
- [Youtube channel](https://www.youtube.com/channel/UCzrskTiT_ObAk3xBkVxMz5g)
12+
- [Playlist](https://www.youtube.com/playlist?list=PLAw7NFdKKYpE-f-yMhP2WVmvTH2kBs00s)
13+
- [Day 1 Track 1 Livestream](https://www.youtube.com/watch?v=lXbjICP6V44&feature=youtu.be)
14+
15+
Talks:
16+
17+
- "How to make Angular Fast" [Video](https://www.youtube.com/watch?v=lXbjICP6V44&feature=youtu.be&t=19220) & [Slides](https://docs.google.com/presentation/d/1o5W1sOaQ0HaPqleGCWy8cukgM5NhhRZWpx2E6KKrc10) & [Sources](https://github.com/mhevery/AngularConnect-2019) by [Misko Hevery](https://twitter.com/mhevery)
18+
19+
- "How Angular Works" [Video](https://www.youtube.com/watch?v=S0o-4yc2n-8&feature=youtu.be) [Slides](https://docs.google.com/presentation/d/1l3GLCqitNQ5G6fgS59gsUkD_EGnIwdnuWP-tKYrxmEI) by [Kara Erickson](https://twitter.com/karaforthewin)
20+
21+
- "Quantum facades" [Slides](https://speakerdeck.com/samjulien/quantum-facades-why-ngrx-facades-are-terrible-or-awesome-depending-on-how-you-observe-them-angularconnect-2019) by [Sam Julien](https://twitter.com/samjulien)
22+
23+
- "Building Angular apps with internationalization (i18n) in mind | Naomi Meyer" [Video](https://www.youtube.com/watch?v=cUDUqqOtBvM)
24+
25+
- [2nd Day Keynote](https://speakerdeck.com/mgechev/angularconnect-2nd-day-keynote) by [Minko Gechev](https://twitter.com/mgechev)
26+
- Our collaboration with standard committees, Chrome, and Bazel
27+
- Automating DX for faster Web
28+
- Intelligent tooling
29+
- Enabling best practices
30+
- ng deploy
31+
32+
Workshops:
33+
34+
- [AnkitSharma-007/blogsite](https://github.com/AnkitSharma-007/blogsite)

‎docs/javascript/angular.md

+103-12
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,49 @@
44
55
[angular.io](https://angular.io/), [API](https://angular.io/api)
66

7-
## Pages
7+
## History
88

9-
* [Angular CLI](./angular-cli.md)
9+
Angular has replaced [AngularJS](https://angularjs.org/) (aka Angular v1).
1010

11-
### Setup
11+
## Releases
1212

13-
```bash
14-
# install the CLI globally
15-
npm install -g @angular/cli
16-
```
13+
Version | Date | More
14+
------- | ---- | ----
15+
12.0 | | [ninja squad](https://blog.ninja-squad.com/2021/05/12/what-is-new-angular-12.0/)
16+
10.0 | 2020-06-25 | [release note](https://blog.angular.io/version-10-of-angular-now-available-78960babd41), [ninja squad](https://blog.ninja-squad.com/2020/06/25/what-is-new-angular-10.0/)
17+
18+
## Learn
19+
20+
### Training
21+
22+
- [Ninja Squad](https://ninja-squad.com/formations)
23+
24+
### Resources
25+
26+
- [Become a ninja with Angular - Pro Pack](https://angular-exercises.ninja-squad.com/)
27+
28+
### Books
29+
30+
- [Become a ninja with Angular - Ebook](https://books.ninja-squad.com/angular)
31+
32+
### Tutorials
33+
34+
- [github.com/devpro/dojo-angular-beginner](https://github.com/devpro/dojo-angular-beginner/blob/master/README.md)
35+
- [web.dev](https://web.dev/angular)
36+
37+
### Libraries
38+
39+
- NgRx: [ngrx.io](https://ngrx.io/), [Documentation](https://ngrx.io/docs)
40+
41+
### Tools
42+
43+
- Visual Studio Code
44+
- [Using Angular in Visual Studio Code](https://code.visualstudio.com/docs/nodejs/angular-tutorial)
1745

1846
### Quick start
1947

48+
* Use [Angular CLI](./angular-cli.md)
49+
2050
```bash
2151
# create the application
2252
ng new
@@ -36,9 +66,70 @@ ng generate component layout/home
3666

3767
[angular.io/guide/quickstart](https://angular.io/guide/quickstart)
3868

39-
## Releases
69+
## Recipes
4070

41-
Version | Date | More
42-
------- | ---- | ----
43-
12.0 | | [ninja squad](https://blog.ninja-squad.com/2021/05/12/what-is-new-angular-12.0/)
44-
10.0 | 2020-06-25 | [release note](https://blog.angular.io/version-10-of-angular-now-available-78960babd41), [ninja squad](https://blog.ninja-squad.com/2020/06/25/what-is-new-angular-10.0/)
71+
### Authentication
72+
73+
- [oktadeveloper/okta-angular-mongodb-hangman-example](https://github.com/oktadeveloper/okta-angular-mongodb-hangman-example)
74+
75+
### CI CD
76+
77+
#### Sonar
78+
79+
- Create a `sonar-project.properties` file at the root folder of the application
80+
81+
```ini
82+
sonar.host.url=https://sonarcloud.io
83+
sonar.login=<token>
84+
sonar.organization=<company>
85+
sonar.projectKey=<projetKey>
86+
sonar.projectName=<projectName>
87+
sonar.projectVersion=1.0
88+
sonar.sourceEncoding=UTF-8
89+
sonar.sources=src
90+
sonar.exclusions=**/node_modules/**,**/*.spec.ts,**/coverage/**,**/bin/**,**/obj/**
91+
#sonar.tests=test
92+
sonar.test.inclusions=**/*.spec.ts
93+
sonar.typescript.lcov.reportPaths=src/WebApp/ClientApp/coverage/lcov.info
94+
#sonar.dotnet.visualstudio.solution.file=Solution.Name.sln
95+
```
96+
97+
- Edit `package.json` file
98+
99+
{{< highlight json >}}
100+
"scripts": {
101+
"sonar": "node_modules/sonar-scanner/bin/sonar-scanner.bat"
102+
},
103+
"dependencies": {
104+
"sonar-scanner": "^3.1.0",
105+
"tslint-sonarts": "^1.8.0",
106+
}
107+
{{< /highlight >}}
108+
109+
### Update
110+
111+
- Follow the procedure given at [update.angular.io](https://update.angular.io/)
112+
113+
### Web design
114+
115+
#### Material design
116+
117+
- [Material Design components for Angular](https://material.angular.io/)
118+
119+
#### DataTables
120+
121+
- Option 1: Angular Datatable
122+
- [Getting started](https://l-lin.github.io/angular-datatables/#/getting-started)
123+
124+
- Historique de la recherche :
125+
- [Angular 5 and jQuery DataTables !](https://medium.com/apprendre-le-web-avec-lior/angular-5-and-jquery-datatables-fd1dd2d81d99)
126+
- [10 Best Angular DataTables](https://www.ngdevelop.tech/best-angular-tables/)
127+
128+
#### materialize-css
129+
130+
- Home site: [materializecss.com](https://materializecss.com/getting-started.html)
131+
- Integration in an Angular project:
132+
- Clean and ok: [How to use materialize-css with angular](https://stackoverflow.com/questions/48007665/how-to-use-materialize-css-with-angular)
133+
- Didn't work: [How to use MaterializeCSS in Angular 2](https://stackoverflow.com/questions/41937283/how-to-use-materializecss-in-angular-2)
134+
- Didn't also work: [stanleyeosakul/angular-travelville](https://github.com/stanleyeosakul/angular-travelville)
135+
- Didn't try: [sherweb/ngx-materialize](https://github.com/sherweb/ngx-materialize)

‎docs/javascript/ecmascript.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# ECMAScript
2+
3+
[ecma-international.org](https://www.ecma-international.org/)
4+
5+
## Introductions
6+
7+
> ECMAScript is the scripting language that forms the basis of JavaScript.
8+
9+
[developer.mozilla.org](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Language_Resources)
10+
11+
## Versions
12+
13+
### ES2019
14+
15+
[New and potential ES2019 JavaScript features every developer should be excited about](https://blog.logrocket.com/new-es2019-javascript-features-every-developer-should-be-excited-about/) - September 26, 2019
16+
17+
New features:
18+
19+
- Optional chaining: foo?.bar
20+
- Pipeline operator: |>
21+
- Object.fromEntries()
22+
- [].flat(), [].flatMap()
23+
- Optional catch binding: catch {}
24+
- ''.trimStart(), ''.trimEnd()

‎docs/javascript/express.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Express
2+
3+
> Fast, unopinionated, minimalist web framework for Node.js
4+
5+
[expressjs.com](https://expressjs.com/), [GitHub](https://github.com/expressjs/express)
6+
7+
## Learn
8+
9+
- [Mozilla Express/Node introduction](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/Introduction)
10+
11+
### Express & MongoDB
12+
13+
- [Building a Simple CRUD Application with Express and MongoDB](https://zellwk.com/blog/crud-express-mongodb/)
14+
- [Quick Start](https://mongodb.github.io/node-mongodb-native/3.1/quick-start/quick-start/)
15+
16+
## Getting started
17+
18+
## Express Generator
19+
20+
[Express application generator](https://expressjs.com/en/starter/generator.html)
21+
22+
### Local checkout
23+
24+
```dos
25+
npm install express-generator
26+
node_modules\express-generator\bin\express-cli.js -h
27+
node_modules\express-generator\bin\express-cli.js myapp
28+
```

‎docs/javascript/ionic.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Ionic
2+
3+
> One codebase. Any platform. Now in Vue, Angular, React.
4+
>
5+
> An open source mobile UI toolkit for building high quality, cross-platform native and web app experiences. Move faster with a single code base, running everywhere with JavaScript and the Web.
6+
7+
[ionicframework.com](https://ionicframework.com/), [GitHub](https://github.com/ionic-team/ionic) [Twitter](https://twitter.com/Ionicframework)
8+
9+
## Ionic in Angular
10+
11+
### Setup
12+
13+
`npm i ionic-angular` [ionic-angular](https://www.npmjs.com/package/ionic-angular)
14+
15+
### Quick start
16+
17+
[Your First Ionic App: Angular](https://ionicframework.com/docs/angular/your-first-app)

‎docs/javascript/javascript.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# JavaScript
2+
3+
## Common librairies
4+
5+
### jQuery
6+
7+
- [jQuery Core 3.0 Upgrade Guide](https://jquery.com/upgrade-guide/3.0/#jquery-core-3-0-upgrade-guide)
8+
- [jQuery Migrate Plugin - Warning Messages](https://github.com/jquery/jquery-migrate/blob/master/warnings.md)
9+
10+
### signature_pad
11+
12+
- [GitHub](https://github.com/szimek/signature_pad)
13+
- [NPM](https://www.npmjs.com/package/signature_pad)
14+
- [Creating a signature pad using Canvas and ASP.​NET Core Razor Pages](https://asp.net-hacker.rocks/2018/06/05/signature-pad.html)

‎docs/javascript/nodejs.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Node.js
2+
3+
> Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.
4+
5+
[nodejs.org](https://nodejs.org/)
6+
7+
## Learn
8+
9+
### Getting started
10+
11+
* [How do I start with Node.js after I installed it?](https://nodejs.org/en/docs/guides/getting-started-guide/)

‎docs/javascript/redux.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Redux
2+
3+
> A Predictable State Container for JS Apps
4+
5+
[redux.js.org](https://redux.js.org/)
6+
7+
## Learn
8+
9+
- [markerikson/react-redux-links/react-native](https://github.com/markerikson/react-redux-links/blob/master/react-native.md)
10+
- [reduxjs/react-redux](https://github.com/reduxjs/react-redux)
11+
- [Mark's Dev Blog](https://blog.isquaredsoftware.com/)
12+
13+
## Getting started
14+
15+
- [Starter Kit](https://redux-starter-kit.js.org/)

‎docs/javascript/webpack.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# webpack
2+
3+
> webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset.
4+
5+
[webpack.js.org](https://webpack.js.org/)

‎docs/javascript/yarn.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Yarn
2+
3+
> Yarn is a package manager that doubles down as project manager.
4+
5+
[yarnpkg.com](https://yarnpkg.com/)

0 commit comments

Comments
 (0)
Please sign in to comment.