Website dan dokumentasi untuk Lokstra Framework - Go backend framework yang simpel, scalable, dan terstruktur.
- Python 3.x (untuk development server)
- Node.js (opsional, untuk linting dan alternative server)
Ada beberapa cara untuk menjalankan website secara lokal:
# Start server di port 8000
npm run serve
# atau
python -m http.server 8000
# Install http-server globally (one time)
npm install -g http-server
# Start server
npm run serve:node
# Jika PHP tersedia
npm run serve:php
-
Automatic dengan VS Code:
- Buka VS Code
- Tekan
F5
atau pilih "Launch Lokstra Website" - Server akan start otomatis dan browser akan terbuka
-
Manual:
- Jalankan
npm run serve
di terminal - Buka browser ke
http://localhost:8000
- Jalankan
lokstra_dev_web/
├── index.html # Homepage
├── about.html # About page
├── architecture.html # Architecture documentation
├── assets/ # Static assets
│ ├── style.css # Main stylesheet
│ ├── main.js # Main JavaScript
│ ├── navbar.html # Navigation component
│ ├── footer.html # Footer component
│ ├── meta-*.html # Meta tag components
│ └── logo.png # Lokstra logo
├── .vscode/ # VS Code configuration
│ ├── launch.json # Debug configuration
│ └── tasks.json # Build tasks
├── package.json # Project metadata
├── eslint.config.js # ESLint configuration
└── README.md # This file
# Check JavaScript code quality
npm run lint
# Auto-fix linting issues
npm run lint:fix
- HTML files: Menggunakan komponen modular (navbar, footer, meta tags)
- CSS: External stylesheet dengan responsive design
- JavaScript: Vanilla JS dengan proper ESLint configuration
- Meta tags: Dinamis loading untuk SEO optimization
- ✅ Responsive Design - Mobile-first approach
- ✅ Component-based - Modular HTML components
- ✅ SEO Optimized - Dynamic meta tags dan Open Graph
- ✅ Modern JavaScript - ES2021 dengan ESLint
- ✅ Fast Loading - Optimized assets dan caching
- ✅ Professional Navigation - Mobile hamburger menu dengan overlay
Website dioptimalkan untuk mobile devices:
- Responsive breakpoints di 768px
- Mobile navigation dengan hamburger menu
- Touch-friendly buttons dan links
- Optimal typography scaling
Jika copy-paste URL di WhatsApp tidak keluar preview, ikuti langkah berikut:
# Deploy dengan script otomatis
npm run deploy
# Atau manual
git add .
git commit -m "Update meta tags for social sharing"
git push origin main
# Test meta tags validation
npm run validate:og # Open Graph validator
npm run validate:fb # Facebook debugger
npm run validate:twitter # Twitter card validator
# Test local meta tags
npm run test:meta # Buka meta-test.html
- Pastikan website sudah deploy ke:
https://lokstra.dev/
- Copy URL tersebut
- Paste di WhatsApp chat
- WhatsApp akan generate preview card dengan:
- ✅ Title: "Lokstra Framework - Go Backend Framework"
- ✅ Description: "Framework backend Go yang simpel, scalable, dan terstruktur"
- ✅ Image: Lokstra logo
- ✅ URL: lokstra.dev link
- File
meta-test.html
untuk testing meta tags - File
index-production.html
dengan static meta tags - Meta tags tersedia di
assets/meta-*.html
untuk dynamic loading
File .vscode/launch.json
sudah dikonfigurasi untuk:
- Launch Lokstra Website - Start server + browser
- Launch Chrome (no server) - File protocol untuk testing cepat
File .vscode/tasks.json
menyediakan tasks untuk:
- Python HTTP server
- Node.js HTTP server
- PHP built-in server
- External CSS - Single stylesheet untuk better caching
- Component loading - Asynchronous HTML component loading
- Meta optimization - Dynamic meta tags untuk social sharing
- Minimal JavaScript - Vanilla JS tanpa framework overhead
- Fork repository
- Create feature branch
- Run
npm run lint
untuk check code quality - Test dengan
npm run serve
- Submit pull request
Apache 2.0 License - see LICENSE file for details.
Made with ❤️ in Indonesia