rustatian.me is a modern web application built with Preact, Vite, and MUI, featuring SSR support, custom theming, and Markdown rendering.
You can use Yarn, npm, or Bun:
# With Yarn
yarn install
# With npm
npm install
# With Bun
bun install
yarn dev
# or
npm run dev
# or
bun run dev
The application will be available at: http://localhost:5173
yarn build
# or
npm run build
# or
bun run build
After running the build command, the result will be in the dist/
folder with all routes pre-rendered (static site generation).
yarn preview
# or
npm run preview
# or
bun run preview
- Preact — ⚛️ lightweight alternative to React
- Vite — ⚡ fast build tool and dev server
- MUI — 🎨 modern UI component library
- @tanstack/react-query — 🔄 asynchronous data management
- markdown-it — 📝 Markdown rendering
- TypeScript — 🔒 type safety
src/
api/ # 🌐 API requests
assets/ # 🖼️ Static resources (icons, images)
components/ # 🧩 UI components
hooks/ # 🪝 Custom hooks
pages/ # 📄 Application pages
state/ # 🗃️ Global state
theme/ # 🎨 Theming and styles
utils/ # 🛠️ Utilities
index.tsx # 🚪 Entry point
All scripts can be run with Yarn, npm, or Bun:
Purpose | Yarn Command | npm Command | Bun Command |
---|---|---|---|
🚀 Start dev server | yarn dev |
npm run dev |
bun run dev |
🏗️ Build for production | yarn build |
npm run build |
bun run build |
👀 Preview build | yarn preview |
npm run preview |
bun run preview |
🧹 Lint code | yarn lint |
npm run lint |
bun run lint |
🛠️ Lint & fix | yarn lint:fix |
npm run lint:fix |
bun run lint:fix |
📝 Check formatting | yarn format |
npm run format |
bun run format |
✨ Format & fix | yarn format:fix |
npm run format:fix |
bun run format:fix |
- ESLint and Prettier are used for code quality and formatting.
- Linting and formatting of changed files are automatically run before commits (via Husky and lint-staged).
See the LICENSE file.