Web development Part 1: Angular and Git

Web development Part 1: Angular and Git

Angular 1 : Released in October 2010

Angular 2 : Released in 2015 and is build using TypeScript. Features:

  • Performance
  • Mobile support
  • Component based web development
  • More language choice like TypeScript, PureScript, EcmaScript5/6 etc


ECMAScript : It is a JavaScript language standard
TypeScript : It is a superset of javaScript

Check installed node, npm and angular version on your system :

node -v   # Node version
npm -v    # npm version
ng -v     # Angular version

Create a Angular project helloWorld :

ng new helloWorld

In cmd, go to project folder helloWorld and type :

code .

To start project :

ng serve

In the browser type : http://localhost:4200/

Angular vs jQuery :
No alt text provided for this image


Text editor :


Command Line Shell :

Installing Git on PC :


To check installed git version : (Type in Windows PowerSchell/cmd)

git --version

This will give us below details :

No alt text provided for this image

To check default git configuration list type in cmd :

git config --list

Or, to configure name to be used by git :

git config --global user.name "Your Name"

To configure email :

git config --global https://www.garudax.id/redir/general-malware-page?url=user%2eemail <your email address> 

To set a folder as a git repository folder :

  1. Create a folder : demo-git
  2. Open command prompt type: code
  3. In the VS code create a file : index.html
<!DOCTYPE html>
<html><head></head>

    <body><h1>This is a demo git</h1></body>
</html>

4. Initialise demo-git folder as a git repository, in cmd type :

git init
No alt text provided for this image

5. To check git repository status type :

git status
No alt text provided for this image

6. To add file to staging area :

git add .
No alt text provided for this image

7. To commit changes to git repository :

git commit -m "demo-git added index.html file"
No alt text provided for this image

8. To check log of git commit :

git log --oneline
No alt text provided for this image

9. Modify index.html :

<!DOCTYPE html>
<html><head></head>

    <body><h1>This is a demo git</h1><p>This is MK</p></body>
</html>

10. Add a sub-folder : test

11. Create a file hello-world.html inside test folder :

<!DOCTYPE html>
<html><head></head>

    <body><h1>Hello World!</h1></body>
</html>

12. Continue...

Related Tools/articles :

Plunker

Node Version Manager : NVM

ECMAScript

ES6

SystemJS is an ES6 module loader :

Angular 2 Cheat Sheet

Elvis operator


Lifecycle Hooks in Angular : lifecycle hooks

Angular style guide : styleguide

Learn RxJS and Observable : ReactiveX


Happy Coding...

To view or add a comment, sign in

More articles by Manish Kumar

  • Learning Jasmine and NUnit

    Jasmine website : Jasmine documentation : jQuery matchers Jasmine plugin : To install jasmine at Global level : npm…

  • Website to Learn From

    I have no TV Online library : Become an author for packtpub . Internet Radio : Fitness : Asteroid Database and Mining…

  • SOLID Principles and OOP Concepts

    SOLID Principles : S - Single Responsibility Principle O - Open Closed Principle L - Liskov Substitution Principle I -…

  • Web Development Part 2: Useful Learning Resources

    Understanding the Node.js event loop Bootstrap forms : Body parser : Functions : async.

  • Understanding Webpack

    On npmjs website webpack package is described as "webpack is a module bundler. Its main purpose is to bundle JavaScript…

  • Base64 Encoder

    ASCII String : Manish ASCII Character Codes : m -109 and M - 077 077-097-110-105-115-104 8-bit Binary Character Codes :…

  • Angular Basics

    Angular is a JavaScript Framework which allows us to create reactive Single-Page-Applications ( SPA ). Angular…

  • Salesforce Lightning : Attribute

    In the lightning component, write below code: Here v = view, displayMessage is the name of attribute. <aura:component >…

  • Salesforce Lightning : Student Registration Form

    In the StudentRegistrationFormComponent.cmd component, write below code : <!-- StudentRegistrationFormComponent…

Explore content categories