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
git clone https://github.com/ReelVault/reelvault.git
cd reelvault
bun install
bun run devOpen 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:
git clone https://github.com/ReelVault/website.git
cd website
bun install
bun run devOpen 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:
VITE_REELVAULT_API_URL=http://192.168.1.20:3030To 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:
| Command | What it does |
|---|---|
bun run doctor | Checks 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:check | Runs an integrity check on the database |
bun run db:backup | Creates a backup in the backups folder |
bun run db:vacuum | Compacts 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:
bun run format
bun run lint
bun run check-types
bun run testRead the repository's CONTRIBUTING.md for the full process.
Next steps
- Configuration: the environment variables and settings.
- SDK: build your own app on the API.
- Plugins for developers: write a plugin.