Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

chore: use bun as default runtime

Smaug67399bcbfeadd9a0
diff --git a/Makefile b/Makefile
index a677d9a0..023ba9ab 100644
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,9 @@ backend:
cd backend && go run main.go
frontend:
- cd frontend && bun dev
+ cd frontend && bunx --bun nuxt dev
frontendh:
- cd frontend && bun dev --host
+ cd frontend && bunx --bun nuxt dev --host
minio:
minio server ./minio --console-address :9001 --address "localhost:9000"
diff --git a/frontend/README.md b/frontend/README.md
deleted file mode 100644
index ac24a469..00000000
--- a/frontend/README.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# Frontend - Alexandrie
-
-## Overview
-
-The Alexandrie frontend is a Vue 3 application built with Nuxt 4. It features a component-based architecture, state management with Pinia, and a rich editing experience.
-
-## Technology Stack
-
-- **Framework**: Nuxt 4 (Vue 3)
-- **State Management**: Pinia
-- **Editor**: CodeMirror 6
-- **Markdown**: markdown-it with custom extensions
-- **Styling**: SCSS with custom design system
-- **Build Tool**: Vite
-- **PWA**: Offline support with @vite-pwa/nuxt
-
-## Architecture
-
-```
-β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
-β”‚ User Interface β”‚
-β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
- β”‚
- β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”
- β”‚ Pages β”‚ ← Route components
- β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
- β”‚
- β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”
- β”‚ Components β”‚ ← Reusable UI elements
- β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
- β”‚
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
- β”‚ Composables β”‚ ← Business logic & API calls
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
- β”‚
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
- β”‚ Pinia Stores β”‚ ← State management
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
- β”‚
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
- β”‚ Backend API β”‚ ← REST API
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
-```
-
-## Directory Structure
-
-### `/app/components`
-
-Reusable Vue components organized by feature:
-
-**Base Components**:
-
-- `AppX.vue` - Generic UI elements: (buttons, inputs, modals, etc.)
-- `Folder/` - Folder represent a single component (for big components)
-- `Other.vue` - Misc reusable components
-
-_Sometimes components are stored in `pages/<page>/_components/` if they are only used by that page._
-
-### `/app/composables`
-
-Reusable composition functions for shared logic:
-
-- **`useNotifications.ts`** - Toast notifications system
-- **`useContextMenu.ts`** - Right-click context menus
-- **`useNodesTree.ts`** - Tree structure operations on nodes
-- **`user.ts`** - User authentication state
-- **`Preferences.ts`** - User preferences management
-- **`utils.ts`** - Helper functions
-
-### `/app/stores`
-
-Pinia stores for application state:
-
-- **`user.store.ts`** - User authentication and profile
-- **`nodes.store.ts`** - Documents and categories management
-- **`resources.store.ts`** - File uploads and media
-- **`admin.store.ts`** - Admin operations
-
-### `/app/middleware`
-
-Route middleware for navigation guards:
-
-## API Integration
-
-API calls are centralized in `stores/_utils.ts` using the Fetch API with error handling and authentication tokens (also refresh token implementation).
-
-## Development Commands
-
-```bash
-# Install dependencies
-npm install
-
-# Development server (http://localhost:3000)
-npm run dev
-
-# Development with host access (for mobile testing)
-npm run dev:host
-
-# Build for production
-npm run build
-
-# Preview production build
-npm run preview
-
-# Lint code
-npm run lint
-
-# Lint and auto-fix
-npm run lint:fix
-
-# Lint CSS/SCSS
-npm run lint:css
-```
-
-## Environment Configuration
-
-Create `.env` file:
-
-```env
-# API Configuration
-NUXT_PUBLIC_BASE_API=http://localhost:8201
-NUXT_PUBLIC_BASE_CDN=http://localhost:9000/alexandrie
-```
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts
index 3ba75c26..d7686d5c 100644
--- a/frontend/nuxt.config.ts
+++ b/frontend/nuxt.config.ts
@@ -123,6 +123,7 @@ export default defineNuxtConfig({
nitro: {
compressPublicAssets: true,
minify: true,
+ preset: 'bun',
},
pwa: {