How to create Project File ?
- Create Project Folder - my-app
- Install TypeScript - npm install -g typescript
- Compile -tsc helloworld.ts
- In your system need nodeJS software install becouse its used for create Local server its to compliation time.
- Create TypeScript compiler -> tsc --init
- tsc
How to Run TypeScript Project :
- tsc app.ts
- node app.js
Install Bootstrap in your project :
- cmd : npm install --save bootstrap@3
- One File created node_module in our project
Create Local server :
- npm init
- Field all details and Enter
- and type Yes.
- in your project one more file create package.json
- open package.json file
- Enter cmd :- npm install --save-dev lite-server
- script write -> "start" : "lite-server"
like this
- Then enter :- npm start
1) Create one more terminal for watch your TypeScripte Code
its called typescript watch -
cmd -> tsc -w
All set Now you work on your project
Comments
Post a Comment