Skip to content

Commit 584e664

Browse files
committed
Adding devfile and README to run this lesson in Eclipse Che
Signed-off-by: Sun Tan <[email protected]>
1 parent eaaf2b4 commit 584e664

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

Diff for: README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[![try it online](https://che.openshift.io/factory/resources/factory-contribute.svg)](https://che.openshift.io/f?url=https://github.com/iamshaunjp/node-crash-course/tree/lesson-1)
2+
# node-crash-course - lesson1
3+
https://youtu.be/zb3Qk8SG5Ms
4+
5+
Course files for the Node.js Crash Course tutorial series on The Net Ninja YouTube channel.

Diff for: devfile.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
apiVersion: 1.0.0
2+
metadata:
3+
name: nodejs-cc-lesson1-
4+
5+
components:
6+
- id: che-incubator/typescript/latest
7+
type: chePlugin
8+
9+
- alias: node
10+
type: dockerimage
11+
image: node
12+
mountSources: true
13+
command: ['sleep', 'infinity']
14+
memoryLimit: 512M
15+
16+
- alias: git
17+
type: dockerimage
18+
image: sunix/git-devtools
19+
mountSources: true
20+
memoryLimit: 64M
21+
args: ['sleep', 'infinity']
22+
23+
commands:
24+
25+
- name: node (interactive mode)
26+
actions:
27+
- type: exec
28+
command: node
29+
component: node
30+
workdir: /projects/node-crash-course
31+
32+
- name: node -v
33+
actions:
34+
- type: exec
35+
command: node -v
36+
component: node
37+
38+
- name: node test
39+
actions:
40+
- workdir: /projects/node-crash-course
41+
type: exec
42+
command: node test
43+
component: node

0 commit comments

Comments
 (0)