Development Environment Setup
To contribute to ConvertX, you need to set up a local development environment. This project uses Bun.
Prerequisites
- Bun: Version 1.2.2 or higher.
- System Dependencies: You must install the underlying converter tools (FFmpeg, ImageMagick, etc.) on your local machine for the app to function correctly during development.
- Tip: Refer to the
Dockerfilein the repository root to see the list ofapt-getpackages required (e.g.,ffmpeg,imagemagick,pandoc,inkscape).
- Tip: Refer to the
Setup Steps
-
Clone the repository:
git clone https://github.com/C4illin/ConvertX.git cd ConvertX -
Install Node dependencies:
bun install -
Run Development Server:
The server will start atbun run devhttp://localhost:3000. -
Linting & Formatting:
- Lint:
bun run lint - Format:
bun run format
- Lint:
VS Code
A .devcontainer configuration is provided. If you use VS Code with the Dev Containers extension, you can open the project inside a container that has all dependencies pre-installed. This is the recommended approach to avoid installing system binaries manually.