Skip to content

Commit 1ea155c

Browse files
committed
first commit
0 parents  commit 1ea155c

26 files changed

+2787
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'docs/**'
8+
- '.github/workflows/deploy.yml'
9+
pull_request:
10+
branches: [ main ]
11+
paths:
12+
- 'docs/**'
13+
- '.github/workflows/deploy.yml'
14+
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
jobs:
21+
deploy:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v4
30+
31+
- name: Upload artifact
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: './docs'
35+
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4
39+
if: github.ref == 'refs/heads/main'

.gitignore

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Runtime data
8+
pids
9+
*.pid
10+
*.seed
11+
*.pid.lock
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage/
15+
16+
# nyc test coverage
17+
.nyc_output
18+
19+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
20+
.grunt
21+
22+
# Bower dependency directory (https://bower.io/)
23+
bower_components
24+
25+
# node-waf configuration
26+
.lock-wscript
27+
28+
# Compiled binary addons (https://nodejs.org/api/addons.html)
29+
build/Release
30+
31+
# Dependency directories
32+
jspm_packages/
33+
34+
# TypeScript v1 declaration files
35+
typings/
36+
37+
# Optional npm cache directory
38+
.npm
39+
40+
# Optional eslint cache
41+
.eslintcache
42+
43+
# Optional REPL history
44+
.node_repl_history
45+
46+
# Output of 'npm pack'
47+
*.tgz
48+
49+
# Yarn Integrity file
50+
.yarn-integrity
51+
52+
# dotenv environment variables file
53+
.env
54+
55+
# parcel-bundler cache (https://parceljs.org/)
56+
.cache
57+
.parcel-cache
58+
59+
# next.js build output
60+
.next
61+
62+
# nuxt.js build output
63+
.nuxt
64+
65+
# vuepress build output
66+
.vuepress/dist
67+
68+
# Serverless directories
69+
.serverless
70+
71+
# FuseBox cache
72+
.fusebox/
73+
74+
# DynamoDB Local files
75+
.dynamodb/
76+
77+
# TernJS port file
78+
.tern-port
79+
80+
# Stores VSCode versions used for testing VSCode extensions
81+
.vscode-test
82+
83+
# macOS
84+
.DS_Store
85+
.AppleDouble
86+
.LSOverride
87+
88+
# Icon must end with two \r
89+
Icon
90+
91+
# Thumbnails
92+
._*
93+
94+
# Files that might appear in the root of a volume
95+
.DocumentRevisions-V100
96+
.fseventsd
97+
.Spotlight-V100
98+
.TemporaryItems
99+
.Trashes
100+
.VolumeIcon.icns
101+
.com.apple.timemachine.donotpresent
102+
103+
# Directories potentially created on remote AFP share
104+
.AppleDB
105+
.AppleDesktop
106+
Network Trash Folder
107+
Temporary Items
108+
.apdisk
109+
110+
# Windows
111+
Thumbs.db
112+
Thumbs.db:encryptable
113+
ehthumbs.db
114+
ehthumbs_vista.db
115+
116+
# Dump file
117+
*.stackdump
118+
119+
# Folder config file
120+
[Dd]esktop.ini
121+
122+
# Recycle Bin used on file shares
123+
$RECYCLE.BIN/
124+
125+
# Windows Installer files
126+
*.cab
127+
*.msi
128+
*.msix
129+
*.msm
130+
*.msp
131+
132+
# Windows shortcuts
133+
*.lnk
134+
135+
# Linux
136+
*~
137+
138+
# temporary files which can be created if a process still has a handle open of a deleted file
139+
.fuse_hidden*
140+
141+
# KDE directory preferences
142+
.directory
143+
144+
# Linux trash folder which might appear on any partition or disk
145+
.Trash-*
146+
147+
# .nfs files are created when an open file is removed but is still being accessed
148+
.nfs*
149+
150+
# IDE
151+
.vscode/
152+
.idea/
153+
*.swp
154+
*.swo
155+
*~
156+
157+
# Logs
158+
logs
159+
*.log
160+
161+
# Build outputs
162+
dist/
163+
build/
164+
165+
# Temporary files
166+
tmp/
167+
temp/

DEPLOYMENT.md

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# 🚀 Deployment Guide - GitHub Pages
2+
3+
Bu rehber, Vakit landing page'ini GitHub Pages'e deploy etmek için adım adım talimatları içerir.
4+
5+
## 📋 Ön Gereksinimler
6+
7+
- GitHub hesabı
8+
- Git kurulu
9+
- Repository'ye push yetkisi
10+
11+
## 🔧 Deployment Adımları
12+
13+
### 1. Repository Ayarları
14+
15+
1. GitHub'da repository'nizi açın
16+
2. **Settings** sekmesine gidin
17+
3. Sol menüden **Pages** seçin
18+
4. **Source** bölümünde:
19+
- **Deploy from a branch** seçin
20+
- **Branch**: `gh-pages` seçin
21+
- **Folder**: `/docs` seçin
22+
5. **Save** butonuna tıklayın
23+
24+
### 2. GitHub Actions Workflow
25+
26+
Repository'de `.github/workflows/deploy.yml` dosyası zaten mevcut. Bu workflow:
27+
28+
- ✅ Main branch'e push yapıldığında otomatik deploy
29+
- ✅ Dosya validasyonu
30+
- ✅ GitHub Pages'e otomatik yükleme
31+
- ✅ Deployment durumu bildirimleri
32+
33+
### 3. Manuel Deploy (Opsiyonel)
34+
35+
Eğer GitHub Actions kullanmak istemiyorsanız:
36+
37+
```bash
38+
# Repository'yi klonlayın
39+
git clone https://github.com/hakancelikdev/vakit.git
40+
cd vakit
41+
42+
# gh-pages branch'i oluşturun
43+
git checkout -b gh-pages
44+
45+
# Dosyaları ekleyin
46+
git add .
47+
48+
# Commit yapın
49+
git commit -m "Initial deployment"
50+
51+
# Push yapın
52+
git push origin gh-pages
53+
```
54+
55+
### 4. Custom Domain (Opsiyonel)
56+
57+
Eğer custom domain kullanmak istiyorsanız:
58+
59+
1. Domain sağlayıcınızdan DNS ayarları:
60+
```
61+
Type: CNAME
62+
Name: www
63+
Value: hakancelik.github.io
64+
```
65+
66+
2. Repository'de `CNAME` dosyası oluşturun:
67+
```
68+
yourdomain.com
69+
```
70+
71+
## 🔍 Deployment Kontrolü
72+
73+
### Deployment Durumu
74+
75+
1. **Actions** sekmesinde workflow durumunu kontrol edin
76+
2. **Settings > Pages** bölümünde deployment durumunu görün
77+
3. Site URL'ini test edin: `https://vakit.hakancelik.dev`
78+
79+
### Yaygın Sorunlar
80+
81+
#### ❌ 404 Hatası
82+
- Repository adının doğru olduğundan emin olun
83+
- gh-pages branch'inin oluşturulduğunu kontrol edin
84+
85+
#### ❌ CSS/JS Yüklenmiyor
86+
- Dosya yollarının doğru olduğunu kontrol edin
87+
- Cache'i temizleyin (Ctrl+F5)
88+
89+
#### ❌ Assets Görünmüyor
90+
- Assets klasörünün repository'de olduğunu kontrol edin
91+
- Dosya izinlerini kontrol edin
92+
93+
## 🛠️ Geliştirme Ortamı
94+
95+
### Lokal Test
96+
97+
```bash
98+
# Python ile
99+
cd docs
100+
python3 -m http.server 8000
101+
102+
# Node.js ile
103+
cd docs
104+
npx serve .
105+
106+
# PHP ile
107+
cd docs
108+
php -S localhost:8000
109+
```
110+
111+
### Dosya Yapısı Kontrolü
112+
113+
```
114+
vakit/
115+
├── docs/ # Landing page dosyaları
116+
│ ├── index.html ✅ Ana sayfa
117+
│ ├── styles.css ✅ CSS stilleri
118+
│ ├── script.js ✅ JavaScript
119+
│ ├── assets/ ✅ Resimler ve ikonlar
120+
│ ├── sitemap.xml ✅ SEO için
121+
│ └── robots.txt ✅ Arama motorları için
122+
├── vakit/ # iOS Uygulaması
123+
├── .github/workflows/ ✅ GitHub Actions
124+
└── README.md ✅ Proje dokümantasyonu
125+
```
126+
127+
## 📊 Analytics (Opsiyonel)
128+
129+
Google Analytics eklemek için:
130+
131+
1. Google Analytics hesabı oluşturun
132+
2. Tracking ID'yi alın
133+
3. `docs/index.html` dosyasına tracking kodu ekleyin:
134+
135+
```html
136+
<!-- Google Analytics -->
137+
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
138+
<script>
139+
window.dataLayer = window.dataLayer || [];
140+
function gtag(){dataLayer.push(arguments);}
141+
gtag('js', new Date());
142+
gtag('config', 'GA_TRACKING_ID');
143+
</script>
144+
```
145+
146+
## 🔄 Güncelleme
147+
148+
Her değişiklik sonrası:
149+
150+
1. Değişiklikleri commit edin
151+
2. Main branch'e push yapın
152+
3. GitHub Actions otomatik olarak deploy edecek
153+
4. 2-5 dakika içinde değişiklikler yayınlanacak
154+
155+
## 📞 Destek
156+
157+
Herhangi bir sorun yaşarsanız:
158+
159+
- [GitHub Issues](https://github.com/hakancelikdev/vakit/issues)
160+
- [GitHub Pages Docs](https://docs.github.com/en/pages)
161+
162+
---
163+
164+
🎉 **Tebrikler!** Landing page'iniz başarıyla deploy edildi!

0 commit comments

Comments
 (0)