From 584e66460092fcc568cc9cd58100a49acd7efc4a Mon Sep 17 00:00:00 2001 From: Sun Tan Date: Wed, 17 Jun 2020 09:05:25 +0000 Subject: [PATCH] Adding devfile and README to run this lesson in Eclipse Che Signed-off-by: Sun Tan --- README.md | 5 +++++ devfile.yaml | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 README.md create mode 100644 devfile.yaml diff --git a/README.md b/README.md new file mode 100644 index 00000000..a0f8ca6f --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +[![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) +# node-crash-course - lesson1 +https://youtu.be/zb3Qk8SG5Ms + +Course files for the Node.js Crash Course tutorial series on The Net Ninja YouTube channel. diff --git a/devfile.yaml b/devfile.yaml new file mode 100644 index 00000000..b1d30473 --- /dev/null +++ b/devfile.yaml @@ -0,0 +1,43 @@ +apiVersion: 1.0.0 +metadata: + name: nodejs-cc-lesson1- + +components: + - id: che-incubator/typescript/latest + type: chePlugin + + - alias: node + type: dockerimage + image: node + mountSources: true + command: ['sleep', 'infinity'] + memoryLimit: 512M + + - alias: git + type: dockerimage + image: sunix/git-devtools + mountSources: true + memoryLimit: 64M + args: ['sleep', 'infinity'] + +commands: + + - name: node (interactive mode) + actions: + - type: exec + command: node + component: node + workdir: /projects/node-crash-course + + - name: node -v + actions: + - type: exec + command: node -v + component: node + + - name: node test + actions: + - workdir: /projects/node-crash-course + type: exec + command: node test + component: node