Skip to content

Commit da67b5e

Browse files
committed
README.md edited online with Bitbucket
1 parent 022add1 commit da67b5e

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# README #
2+
3+
### Angular 2 Seed demo ###
4+
5+
### Steps for setup your first angular2 app ###
6+
7+
Step 1. Create a directory in which your project resides
8+
9+
$ mkdir angular-2-seed
10+
$ cd angular-2-seed
11+
12+
Step 2. Create config files and configured as your requirements
13+
package.json -> npm package dependencies
14+
tsconfig.json -> typescript compiler generate javascript code.
15+
typings.json
16+
systemjs.config.js
17+
18+
Step 3. Install packages
19+
20+
$ npm install —save
21+
22+
After installing your project folder directory structure will be look like like this
23+
24+
angular-2-seed
25+
|_ node_modules
26+
|_typings
27+
|_package.json
28+
|_system.config.josn
29+
|_typings.json
30+
31+
Note: Make sure u did not get any error while installing npm packages, if found message npm ERR! means some packages did not installed, so reinstall this again by typing “npm install”. Err will occur if network failure in most of the cases.
32+
33+
Step 4. Everything is setup now time to create you app in angular2
34+
Create application folder
35+
36+
$ mkdir app
37+
38+
Step 5. Create the file app/app.module.ts see the file for code.
39+
// This is the entry point to your application
40+
41+
Step 6. Create a component and add it to application.
42+
Create file app/app.component.ts with the code below
43+
44+
Step 7. Edit the file app/app.module.ts to import your new AppComponent and add it in the declarations and bootstrap fields in the NgModule decorator
45+
46+
Step 8. Run project.
47+
Create file “app/main.ts” , see the code in file
48+
49+
“This code initializes the platform that your application runs in, then uses the platform to bootstrap your AppModule.”

0 commit comments

Comments
 (0)