- Forums
- Angular
- Angular2 Simple Easy Quickstart Commands In Less Than 1 Minute
this tutorial will show you all the command you will need to get a simple project started, a very basic app with a simple component [4598], Last Updated: Mon Jun 24, 2024
webune
Wed Jul 20, 2016
0 Comments
411 Visits
If you are really new to angular 2, i would recommend that you start with the official five minutes quick start at:
https://angular.io/docs/ts/latest/quickstart.htmlif you have already taken that tutorial, i created these commands as a quickstart a new project for myself, i use it as a simple template to get started on any project.
NOTE: You must have these utilities installed: Git
For the purpose of this example, i am going to name my simple project, proj1,
Open a new shell terminal. I will be using an ubuntu unix terminal for this tutorial. (I created a virtual machine using virtualbox for this tutorial.)
1. the first step is to close the quickstart template:
git clone https://github.com/angular/quickstart proj1
2. change directory to our newly created project called proj1
cd proj1
3. Remove any git files that were created from our clone. We dont need them for now
rm -rf .git
4. Start a new git
git init
5. Add the new files into the git project
git add .
6. finally, commit all the files to the new project. NOTE: XXX = WHATEVER YOU WANT TO NAME YOUR FIRST COMMIT
git commit -m "XXX"
7. install the project into node
npm install
8. start the project in node
npm start
9. open your browser and go to this url: http://localhost:800