@@ -44,20 +44,107 @@ What belongs in your JavaScript Starter Kit?
44
44
45
45
- Atom
46
46
47
- - WebStorm (author's favorite)
47
+ - WebStorm ** (author's favorite)**
48
48
49
49
- Brackets
50
50
51
- - VSCode (used in the course)
51
+ - VSCode ** (author's choice) **
52
52
53
53
54
54
### EditorConfig
55
55
56
+ Best way to align configuration in your editors
56
57
58
+ - Create a .editorconfig file
59
+ - Many editors require a plugin
57
60
58
61
## Module #3 : Package Management
59
62
60
- ## Module #4 : Development Web Server
63
+ ### JavaScript Package Managers
64
+
65
+ Selected npm, pretty much the defacto standard now
66
+
67
+ ### Security Scanning for Packages
68
+
69
+ - retire.js
70
+ - Node Security Platform ** (author's choice)**
71
+ - nsp check
72
+
73
+
74
+ ## Module #4 : Development Webserver
75
+
76
+ - http-server
77
+ - Ultra-simple
78
+ - Single command serves up server
79
+ - live-server
80
+ - Lightweight
81
+ - Support live-reloading
82
+ - Express ** (author's choice)**
83
+ - Comprehensive
84
+ - Highly configurable
85
+ - Not just for static files
86
+ - Production grade
87
+ - Run it everywhere
88
+ - Goes good with node
89
+ - Alternatives:
90
+ - koa
91
+ - hapi
92
+ - budo
93
+ - Integrates with Browserify
94
+ - Includes hot reloading
95
+ - Webpack dev server
96
+ - Built in to Webpack
97
+ - Serves from memory
98
+ - Includes hot reloading
99
+ - Browsersync
100
+ - Dedicated IP for sharing work on LAN
101
+ - All interactions remain in sync
102
+ - Across devices, etc.
103
+ - Great for cross-device testing
104
+ - Literally syncs across multiple browsers in real time
105
+ - Browsersync recipes available
106
+ - Integrates with Webpack, Express
107
+
108
+ ### Express Webserver
109
+
110
+ Created srcServer.js file to configure and run Express.
111
+
112
+ Used ` node .\buildScripts\srcServer.js ` command to leverage our script to run Express.
113
+
114
+ ### Sharing Work-in-progress
115
+
116
+ Alternatives to using traditional Cloud services such as AWS and Azure.
117
+
118
+ - localtunnel ** (author's choice)**
119
+ - Easily share work on your local machine
120
+ - npm install localtunnel -g
121
+ - start your app
122
+ - lt --port 3000 --subdomain kevin
123
+ - Creates: http://kevin.localtunnel.me
124
+ - ngrok
125
+ - Secure tunnel to your local machine
126
+ - Pretty easy to share work
127
+ - Install ngrok
128
+ - Install authtoken
129
+ - Start your app
130
+ - ./ngrok http 80
131
+ - Secure
132
+ - Surge
133
+ - Quickly host static files to public URL
134
+ - Setup
135
+ - npm install -g surge
136
+ - surge
137
+ - Different approach
138
+ - Hosting persists
139
+ - now
140
+ - Quickly deploy Node.js to the cloud
141
+ - To use
142
+ - npm install -g now
143
+ - Create start script
144
+ - now
145
+ - Hosting persists
146
+
147
+ ## Module #5 : Automation
61
148
62
149
63
150
0 commit comments