Tüm Rehberler
Node.js ve npm Kurulumu
Node.js çalışma ortamını ve npm paket yöneticisini kurun.
Başlangıç10 dk
Kurulum Adımları
1. NodeSource repository'yi ekleyin (Node.js 20 LTS):
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -2. Node.js'i kurun:
sudo apt install nodejs -y3. Versiyonları kontrol edin:
node --version
npm --version4. Alternatif: nvm ile kurulum (önerilen):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 20
nvm use 20
nvm alias default 205. Global paket yükleme:
npm install -g yarn pnpm6. Yeni proje başlatma:
mkdir proje && cd proje
npm init -y7. Paket yükleme:
npm install express
npm install -D typescript @types/node8. package.json script'leri:
"scripts": {
"dev": "node --watch index.js",
"start": "node index.js"
}İlgili Rehberler
Linux VPS Sunucu Kurulumu (Ubuntu)
Ubuntu tabanlı VPS sunucunuzu sıfırdan yapılandırın. Güvenlik, kullanıcı yönetimi ve temel ayarlar.
Apache Web Sunucu Kurulumu
Apache HTTP sunucusunu kurun ve sanal host yapılandırması yapın.
Nginx Web Sunucu Kurulumu
Nginx web sunucusunu kurun ve reverse proxy olarak yapılandırın.
Let's Encrypt SSL Sertifika Kurulumu
Certbot ile ücretsiz SSL/TLS sertifikası alın ve HTTPS'yi etkinleştirin.