When to export
There are four common reasons to download a ZIP of your Myndlab project:
1
Leaving Myndlab
You want to take ownership of the generated code and self-host or continue development outside the platform.
2
Handing off to a dev team
Your designers or engineers need the raw source to review, extend, or integrate with existing systems.
3
Local development
You want to run the app on your own machine, connect a local database, and iterate without consuming build credits.
4
Backup
You want a point-in-time archive of the project code stored somewhere you control.
How to export
1
Open Project Settings
Click the gear icon in the top-right corner of the Build screen, or navigate to Project Settings from the left rail.
2
Go to the Export tab
Select the "Export" tab in the settings sidebar.
3
Click Download ZIP
Click the Download ZIP button. Myndlab packages the latest snapshot and serves the download immediately — no wait required.
You can also export any previous version by opening Version history, selecting the snapshot you want, and choosing Export this version from the snapshot menu.
What's in the ZIP
The archive is a self-contained project with the following structure:
text
your-project-name/
├── frontend/ # React app (Vite)
├── backend/ # FastAPI app
├── migrations/ # Alembic SQL migration files
├── Dockerfile # Multi-stage production image
├── docker-compose.yml # Orchestrates frontend + backend + PostgreSQL
└── .env.example # All required environment variables (no secrets)
ℹNote..env.example lists every required environment variable with a description of each. Copy it to .env and fill in your values before running the app.
Running locally with Docker Compose
The fastest path to a running local instance is Docker Compose. You need Docker Desktop (or Docker Engine + Compose plugin) installed.
bash
# 1. Copy environment variables
cp .env.example .env
# Edit .env and fill in required values
# 2. Start all services
docker compose up --build
After the build completes, the frontend is available at http://localhost:5173 and the backend API at http://localhost:8000. The PostgreSQL database runs on port 5432 (local only, not exposed publicly).
Running without Docker
If you prefer to run each service directly, you will need Node 20+, Python 3.11+, and a running PostgreSQL instance.
bash
# Frontend
cd frontend
npm install
npm run dev
# Backend (in a separate terminal)
cd backend
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload
Point the DATABASE_URL environment variable at your local PostgreSQL instance, then run the migrations:
bash
cd backend
alembic upgrade head
The code is yours
Code exported from Myndlab is yours — no attribution requirement, no licence restriction, no phone-home dependency. You can modify it, sell it, open-source it, or hand it to a client without any obligation to Myndlab.
The only exception is third-party libraries included in the generated code, which carry their own open-source licences (MIT, Apache 2.0, etc.). These are listed in frontend/package.json and backend/requirements.txt.