Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
43 changes: 43 additions & 0 deletions devfile.yaml
Original file line number Diff line number Diff line change
@@ -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