GIT AND NODE.
JS
LESSON 2 – MR. MINH SANG
1
GIT
2
SOME BASIC CONCEPTS
Version Control: software tool(s) that enable the management of changes to source
code
• Maintaining version history
Several version control tools: CVS, SVN, Git etc.
Distributed version control system
Developed by Linus Torvalds for managing Linux kernel development
Widely adopted now by several projects
• The Node ecosystem thrives on it
3
EXERCISES 4
CONTENTS
Setting up Git on your machine
Using Git
Using online Git repositories
5
NODE.JS AND
NPM 6
WHAT IS NODE.JS?
JavaScript runtime built on Chrome V8 JavaScript Engine
Uses an event-driven, non-blocking I/O model
• Makes it lightweight and efficient
At this moment, we will only talk about node’s use as a JavaScript runtime
• More on server-side use in a later course
7
NODE.JS USE CASES
Utilities written in JavaScript for web development:
Bower, Grunt, Gulp,Yeoman etc.
Server-side Development
Web server, Business logic, Database access
8
NODE PACKAGE MANAGER
Node package manager (NPM): manages ecosystem of node modules / packages
A package contains:
JS files
package.json (manifest)
9
EXERCISES 10
CONTENTS
Setting up
Node.js and NPM
11
SUMMARY
Understand what is meant by full stack in the context of web development
Distinguish between front-end, back-end and full stack web development
Set up a Git repository and perform basic Git operations
Set up and use online Git repositories
Use Node-based modules to perform basic operations.
12