- Python 3.12 (latest stable version)
- Bun
- npm
-
Install Python 3.12
-
Set up a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use venv\Scripts\activate
- Install required Python packages:
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly mlc-ai-nightly
-
Install requirements.txt:
pip install -r requirements.txt -
Run migrations:
cd python
python3 migrations.py
-
Start the Python server:
python3 server.py -
In a new terminal, run the CSS watcher:
bun watch-css
How to install Bun
-
For macOS or Linux:
curl -fsSL https://bun.sh/install | bash -
For Windows:
- Install WSL2
- Run the above curl command in your WSL2 terminal
For more details, visit Bun's official installation guide
- In another terminal, you can either:
- Run Storybook:
npm run storybook - Or start the entire app:
bun start
- To work on the frontend, use
npm run storybook - To run the full application, use
bun start
- Ensure all terminals are running in the project's root directory unless specified otherwise.
- Keep the Python server running while developing.
For any issues or further questions, please refer to the project documentation or open an issue in the repository.