# Migrate from other tools

> Move your app, relational data, Stripe subscriptions, and custom domain from Lovable, Bolt, Base44, no-code tools, or custom code into ExaSpark cleanly with zero downtime.

- Canonical: https://exaspark.ai/docs/migrating-to-exaspark/

## What moves cleanly vs what you rebuild intentionally

Founders move to ExaSpark to replace stitched-together stacks with one unified workspace covering frontend, backend, managed relational tables, auth, branded email, `0%`-fee Stripe, mobile QR / `.aab` delivery, and Pro growth tools.

The cleanest migrations bring your **proven product spec, brand files, CSV data, Stripe account, and domain** — letting ExaSpark generate a clean unified full-stack app instead of porting brittle legacy boilerplate.

| Layer | How it moves into ExaSpark | Typical effort | Watch-out |
| --- | --- | --- | --- |
| **Visual brand & assets** | Attach up to 8 cropped screenshots, logos, and photos via **+** | 10 min | Crop tall pages into clear section shots |
| **Database schema & rows** | Describe tables in plain English, then import CSVs into **Cloud** | 15–30 min | Normalize timestamps to UTC and prices to cents |
| **User accounts & profiles** | Pre-load profile rows + enable `19+` sign-in providers | 15–30 min | Plan magic-link, Google, or password-reset re-login |
| **Stripe subscriptions** | Reuse your existing Stripe account, Price IDs, and Live webhook | 20–40 min | Verify Test mode webhooks in **Preview** first |
| **Custom domain & SEO** | Publish `.exaspark.app`, add domain on Starter/Pro, switch DNS + 301s | 15 min + TTL | Keep legacy host live 48h while DNS caches clear |

## Migration paths by starting platform

Export the highest-signal artifacts from your current tool before creating your new ExaSpark project.

| Starting platform | Export these first | Best move into ExaSpark |
| --- | --- | --- |
| **Lovable / Bolt / Base44** | Table schema summary, key route screenshots, Stripe Price IDs, CSV exports | Attach 4–6 screen captures + paste schema and rules into **App** mode; import CSVs in **Cloud** |
| **Bubble / Webflow / Wix / Squarespace** | Page screenshots, brand media, CMS/catalog CSVs, and old URL map | Rebuild with authentic brand assets, keep high-traffic slugs, add 301 redirects for renamed paths |
| **Existing GitHub / React / Next.js app** | Schema file, API endpoint list, `.env.example` keys, UI screenshots | Rebuild cleanly in **App** mode; connect the [Official GitHub App](https://exaspark.ai/docs/code-and-github/) to export clean snapshots afterward |

## Phase 1: Inventory routes, schema, and business rules

Rebuilding from memory almost always omits subtle rules — like an admin cancel action or a top-ranking SEO slug. Fill out this quick manifest first:

```text
MIGRATION INVENTORY
1. Routes & SEO URLs: /, /classes, /pricing, /account, /admin
   - Legacy URLs needing 301 redirects (e.g. /services -> /classes)
2. Tables & keys:
   - users (email, full_name, role, stripe_customer_id)
   - classes (title, starts_at UTC, capacity, price_cents)
   - bookings (user_id -> users.id, class_id -> classes.id, status)
3. Auth & roles: Google + Email magic link; /admin restricted to admin role
4. Stripe: Reuse existing Stripe account (0% ExaSpark fee) + Live Price IDs
5. Branded email: Transactional receipts from hello@yourdomain.com
```

## Phase 2: Rebuild the full-stack app cleanly in Preview

Build and test everything inside ExaSpark's isolated **Preview** environment while your old site serves live customers uninterrupted.

1. **Attach core visual references** — Click **+** in **App** (or **Design**) mode to upload your logo, 3–4 cropped screenshots of your current UI, and key brand imagery.
2. **Send your structured migration prompt** — Include routes, tables, role checks, and Stripe tiers in one clear opening prompt.
3. **Verify flows in Preview** — Register test users, verify role blocks, and complete a full Stripe **Test mode** checkout with webhook fulfillment.
4. **Match SEO URLs and redirects** — Verify titles, descriptions, sitemaps, and exact URL slugs (plus `301` redirects for changed paths). See [Subdomains & redirects](https://exaspark.ai/docs/subdomains-and-redirects/).

> **Example prompt (App):** Rebuild our membership booking app cleanly in ExaSpark using the attached logo and 4 cropped screenshots for visual identity while tightening mobile layouts. Keep exact routes: /, /classes, /pricing, /account, and /admin. Create Cloud tables for users (with stripe_customer_id), classes, passes, and bookings with foreign keys and server-enforced row privacy so members see only their own bookings while admins manage the roster. Wire Google and email sign-in plus Stripe Test checkout for our $25 drop-in and $89/month plan.

## Phase 3: Migrate data, accounts, and Stripe safely

Handle data, login continuity, and recurring billing carefully so returning buyers experience zero friction.

### Import catalog and operational tables via CSV

Export clean CSVs from your previous platform and check three fields before uploading to **Cloud**:

- **Format dates as ISO-8601 UTC** (`2026-12-01T14:30:00Z`) to prevent timezone drift.
- **Store prices as integer cents** (`$25.00` → `2500`) to avoid decimal rounding errors.
- **Dry-run in Preview first.** Import into **Cloud** (`Preview`), confirm detail views and filters resolve foreign keys cleanly, then import into **Live** right before cutover. See [CSV import & export](https://exaspark.ai/docs/csv-import-and-export/).

### Handle returning accounts cleanly

Raw salted password hashes rarely transfer across independent authentication platforms, and you should never store plain-text passwords.

Pre-import user profile rows (`email`, `full_name`, `role`, `stripe_customer_id`) keyed by verified email, enable **Google OAuth** and **Email Magic Links** from ExaSpark's `19+` sign-in providers, and add a brief `/login` note for 30 days explaining how returning members sign in with one click or reset their password.

### Keep active Stripe subscriptions intact

Never cancel active subscribers when moving platforms. Because subscriptions stay inside your Stripe account:

- **Connect the same Stripe account** so existing `cus_...` customers and `sub_...` subscriptions continue uninterrupted with `0%` ExaSpark platform fees.
- **Map existing Stripe Customer and Price IDs** into your **Cloud** tables so active members immediately see paid access and the Stripe Billing Portal.
- **Run both Live webhooks briefly during cutover.** Add your ExaSpark Live webhook in Stripe Dashboard, verify live events arrive cleanly, and disable the old endpoint after DNS finishes propagating. See [Testing Stripe & webhooks](https://exaspark.ai/docs/testing-stripe-and-webhooks/).

## Phase 4: Zero-downtime DNS cutover

Upgrade to **Starter** (`$4.99/mo` or `$3.99/mo` annually) or **Pro** (`$25/mo` or `$20/mo` annually) to attach your custom domain, remove the ExaSpark badge, and send branded emails from your domain.

1. **Lower DNS TTL 24 hours ahead** — Reduce `A` and `CNAME` TTL to `300` seconds at your registrar so DNS updates propagate within minutes.
2. **Verify Live on `.exaspark.app`** — Complete your final **Live** CSV import, flip Stripe to **Live mode**, run one real test purchase and refund, and inspect mobile UX.
3. **Point DNS records to ExaSpark** — Add your domain in **Publish**, update registrar `A`/`CNAME` entries, and verify automatic SSL issuance. See [Custom domains & DNS](https://exaspark.ai/docs/custom-domains-and-dns/).
4. **Verify email DNS records** — Confirm SPF, DKIM, and DMARC pass so receipts never land in spam. See [Email authentication & DNS](https://exaspark.ai/docs/email-authentication-dns/).
5. **Keep your legacy host alive 48 hours** — Let worldwide DNS caches expire cleanly and verify traffic and webhooks in **Analytics** before canceling old hosting.

## Common migration snags and recovery

| Symptom | Root cause | Fastest fix |
| --- | --- | --- |
| **Old Google links hit 404** | Renamed routes lacked permanent redirects | Prompt ExaSpark to add `301` redirects from every old URL to its new route |
| **Existing subscribers show Free tier** | Missing `stripe_customer_id` or status mapping during import | Import Stripe Customer IDs into `users` and refresh active entitlements |
| **Returning users report invalid password** | Old platform password hashes do not transfer directly | Enable **Email Magic Links** + **Google** login with a clear `/login` banner |
| **SSL warning right after DNS edit** | Old DNS cache or Cloudflare proxy setting blocked validation | Match exact DNS records per [DNS Cloudflare & GoDaddy](https://exaspark.ai/docs/dns-cloudflare-godaddy/) and wait 5–15 min |
| **Receipts land in spam post-move** | Missing SPF/DKIM records for your new sending setup | Verify custom domain records in [Branded email](https://exaspark.ai/docs/branded-email/) and test Gmail delivery |

## Next steps

- [CSV import & export](https://exaspark.ai/docs/csv-import-and-export/) — Clean, map, and import legacy tables safely into Preview and Live.
- [Custom domains & DNS](https://exaspark.ai/docs/custom-domains-and-dns/) — Switch root domains, subdomains, and automatic SSL with zero downtime.
- [Testing Stripe & webhooks](https://exaspark.ai/docs/testing-stripe-and-webhooks/) — Verify webhook events and transition cleanly from Test to Live mode.

## From the blog

- [Why AI-built apps stall after launch](https://exaspark.ai/blog/why-ai-built-apps-stall-after-launch/) — Why unified cloud, payments, and ops beat stitched-together prototypes.
- [Why ExaSpark excels at the business layer](https://exaspark.ai/blog/why-exaspark-excels-at-the-business-layer/) — Everything required after screen generation to run real revenue.
- [App launch checklist](https://exaspark.ai/blog/app-launch-checklist/) — Final verification pass before pointing real traffic at your new build.
