Personal blog built with SvelteKit 5, Tailwind CSS 4, and MDsveX.
# Clone the repository
git clone https://github.com/wisnupramoedya/blog.git
cd blog
# Install dependencies
npm install
Create a .env file in the root directory:
SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_anon_key
npm run dev
# Open in browser
npm run dev -- --open
npm run build
npm run preview
src/
├── lib/
│ ├── components/ # Svelte components
│ ├── data/
│ │ └── posts/ # Blog posts in Markdown
│ ├── server/ # Server-side utilities
│ ├── services/ # Client services (views, etc.)
│ ├── stores/ # Svelte stores
│ ├── types/ # TypeScript types
│ └── utils/ # Utility functions
├── routes/
│ ├── api/ # API endpoints
│ └── blog/ # Blog pages
└── app.html
Lihat DEPLOYMENT.md untuk panduan lengkap:
| Command | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run preview |
Preview production build |
npm run check |
Type check with svelte-check |
npm run lint |
Run ESLint and Prettier check |
npm run format |
Format code with Prettier |
MIT