Installation
Run Docubara locally or on your own server with Node.js and MySQL.
Docubara runs as a single Node.js service backed by MySQL or MariaDB. This guide covers a local development setup. For production, see Custom Domains.
Requirements#
Node.js 20 or newer
MySQL 8 or MariaDB 10.4+
About 200 MB of disk space for dependencies and uploads
1. Install dependencies#
git clone https://github.com/docubara/docubara.git
cd docubara
npm install
2. Configure the environment#
Copy the example file and point DATABASE_URL at your database:
cp .env.example .env
DATABASE_URL="mysql://root:secret@localhost:3306/docubara"
JWT_SECRET=replace-with-a-long-random-string
APP_URL=http://localhost:5173
Never reuse the example JWT_SECRET in production. Generate one with openssl rand -hex 32.
3. Create the database schema#
npm run db:deploy
npm run db:seed
4. Start the app#
npm run dev
Open http://localhost:5173 and sign in with the demo account printed by the seed script.