ng serve -o (Angular Ana Projesi)
npm run nodemon (_2_nodejs)
Case Sensitive (JS, Angular,TS,Java)
Non-Case Sensitive (Html,Css,SQL)
npm -v
node -v
nodemon -v
express -v
> ctrl+shift+p= Search
> https://www.ceyrekmuhendis.com/kullanisli-visual-studio-code-kisayollari/
> node -v
> npm -v
> npm version
> npm list -g
>
> npm install -g typescript
> npm install -g @angular/cli
> npm install alertifyjs
> npm install bootstrap
> npm install alertifyjs bootstrap jquery
> npm install font-awesome
> npm install jquery
>
> npm install -g json-server
> npm install json-server
>
> npm i -g express mongoose dotenv body-parser
> npm i express mongoose dotenv body-parser --save
>
> ng version
> ng v
> ng new one-page
> cd one-page/
> ng serve
> ng serve --open
> ng serve -o
> ng serve --port 9999 0<=PORT<=65535 PORT<=1024
> ng serve --open --port 9999
> ng serve -o --port 9999
> ng --help
- ng serve -o --port 2222 (ANGULAR: 2222 port)
- npm run nodemon (NODE JS:1111 port)
- tsc UserRegister.ts
- tsc -w UserRegister.ts
- npm i cors
- json-server --watch blog.json (JSON-SERVER)
- json-server --watch blog.json --port 2222 (JSON-SERVER)
- http://localhost:2222/user
- npm nodemon start (Node JS)
> npm list -g
> npm install -g typescript
> npm install -g @angular/cli
> npm install alertifyjs
> npm install bootstrap
> npm install font-awesome
> npm install jquery
> npm install json-server
> ng serve
> ng serve --port 9999
npm list -g npm unistall -g angular/cli npm cache clean
npm install -g @angular/cli@latest (Angular 17)
Angular Essentials (Version 16) Angular Language Service Angular 10 Snippets - TypeScript, Html, Angular Material, ngRx, RxJS & Flex Layout Angular Schematics
ng generate component onepage-header
ng g component onepage-header ng g component onepage-main ng g component onepage-footer
ng g service onepage-service ng g module onepage-module ng g pipe onepage-pipeline ng g directive onepage-pipeline ng g interface onepage-pipeline ng g enum onepage-pipeline
ng g c => component
ng g i => interface ng g s => services ng g p => pipeline ng g e => enum
npm config list -l npm config delete ayarAdi npm update modulAdi --save-dev npm uninstall modulAdi --save-dev npm get ayarAdi
- npm install bootstrap
- npm install alertifyjs
- npm install bootstrap
- npm install font-awesome angular-font-awesome
- npm install jquery
- npm install popper
- npm install json-server
- npm i
- npm update
- npm uninstall modulAdi
- style.css ==>
/* You can add global styles to this file, and also import other style files */
/* Bootstrap Ekle */
@import "bootstrap/dist/css/bootstrap.min.css";
/* Font awesome */
@import "font-awesome/css/font-awesome.min.css";
- Angular 2009 Google Çalışan Misko tarafında kendi projelerinde kullanmak üzere başlıyor.
- Açık Kaynak Kodludur.
- SPA (Single Page Application)
- One Way Data Binding (*)
- Two Way Data Binding (*) ngModel directive View-Controller layer verileri bind(birleştirme)
- Angular Typescript üzerine inşaa edilmiştir.
- Typscript(Microsoft)= Javascript + ES5
- Az kod yaz , çok iş yap
- Angular Javascript frameworktudur.
- Modüler bir yapıya sahiptir.
- MVC mantığına göre çalışıyor.
- Cross Platform
- DOM
- Componentlerden oluşur.
- Service= Database+
- Module= component+component ..component+ service
- Angular Html,css, .ts(compiler) => .js(interpreter) => Browser
- TS: OOP yakındır.
- Angular components+services+... (module)
- Angular JS (2010)
- Angular 2
- Angular 4 (***)
- Angular 5
- ...
- Angular 17
2010 Angular JS 2016 Javascriptten Typescriptte geçildi
- Git ( 2005 )
- Angular (2009)
- React (2013)
- Vue (2014)
- Nesne yönelimli programlama yapacağımız bir dildir.
- Compiler
- TS= class + abstract inheritance
- JS= Betik bir dildir
- TS=Nesne yönellimli bir dildir.
- Javascript standartını oluşturur.
- 2009 (ES5)
- 2015 (ES6)
- 2009 Asenkron olarak çalışan js'in server side olarak çalışmasına imkan sağladı.
- Nodejs express,habi,meteor gibi framework yapılarıyla bir frameworktur.
- Asenkron (multi process)
- non-blocking
- Google V8 Engine
npm run start npm run nodemon npm run nodemon_q
node -v
npm -v
# package.json oluşturmak dikkat proje ismi:
# 1-) küçük harflerle
# 2-) boşluklar olmamalıdır bunun yerine (-)
# 3-) üğşçö kullanma
npm init
npm init -y
# package.json içindeki kütüphaneleri proje dahil etmek için kullanıyoruz.
npm install
npm i
# local npm'e neler yüklemişim
npm list => LOCAL
# Global npm'e neler yüklemişim
npm list -g => GLOCAL
# Global npm'e neler yüklemişim
# --depth=0 sadece ana yüklediğim dosyaları göster
npm list -g --depth=0
# npm Localde nereye yüklenmiş
npm root
# npm Globalde nereye yüklenmiş.
# C:\Users\90553\AppData\Roaming\npm\node_modules
npm root -g
# SEARCH
# npm üzerinde arama yapmak için kullanıyoruz.
npm search express
npm search mocha
# INSTALL
# --save (Production ortamında kurulması gerekiyor)
npm install -g bower --save
npm install express --save
npm install express@4.18.1 --save # Semantic Version: 4.18.1
# -dev (Test ortamında kurulması)
npm install mocha --save-dev
npm install tailwindcss -D
# DELETE
npm unistall express
# UPDATE
npm update # Bütün bağımlılıkları güncellemek
npm update express
npm doctor
npm audit
Nodemon: Node Monitoring
node template.js
node template
npm install
npm search nodemon
npm install nodemon --save
npm install -g nodemon --save
"scripts": {
"nodemon": "nodemon index.js",
"nodemon_q": "nodemon -q index.js",
}
npm run nodemon
npm run nodemon_q
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.