Skip to content

Run from source ​

For developers

If you only want to use ReelVault, install it instead. Running from source is for development and for running the latest code.

What you need ​

1. Run the server ​

bash
git clone https://github.com/ReelVault/reelvault.git
cd reelvault
bun install
bun run dev

Open http://localhost:3030. The server reloads when you change its code. Its data is kept in ./data.

2. Run the web app ​

In a second terminal:

bash
git clone https://github.com/ReelVault/website.git
cd website
bun install
bun run dev

Open the address that Vite prints, usually http://localhost:3001.

If your server does not run on localhost:3030, create a .env file in the website folder:

bash
VITE_REELVAULT_API_URL=http://192.168.1.20:3030

To serve the built web app from the server instead, run bun run build in website, then set APP_WEB_DIST to its dist folder before you start the server.

Server maintenance commands ​

Run these in the reelvault folder:

CommandWhat it does
bun run doctorChecks Bun, ffmpeg, the data folder, the database and the web UI
bun run admin:reset-password <email>Resets a password when nobody can sign in
bun run db:checkRuns an integrity check on the database
bun run db:backupCreates a backup in the backups folder
bun run db:vacuumCompacts the database. Stop the server first

See Backups & upgrades and Users & profiles.

Before you send a change ​

Each repository has the same checks. Run them from the repository's root:

bash
bun run format
bun run lint
bun run check-types
bun run test

Read the repository's CONTRIBUTING.md for the full process.

Next steps ​

Released under the GNU GPL v3.