How do I deploy a Node.js app with a MySQL database from Claude Code or Cursor?

To deploy a Node.js MySQL app from Claude Code or Cursor, install the Dongee Live skill, tell your AI “publish” and your app goes live with a MySQL database in DATABASE_URL, with no Git or SSH.

To deploy Node.js MySQL app projects from Claude Code or Cursor, you need a server running Node.js, a reachable MySQL database and an easy upload path. With Dongee Live, Dongee's AI app publishing service, run npx skills add dongeelive/skills -g -y, say “publish”, and your app goes live with MySQL included in DATABASE_URL. No Git or SSH needed.

This guide is for anyone building with AI assistants who wants to go from “it works on my computer” to “my customers can use it”. You'll see what to prepare in the code, how to publish step by step and which mistakes to avoid.

What a Node.js app with MySQL needs to run on the internet

When Claude Code or Cursor builds you an app with Express, Fastify, Hono or Next.js, everything runs together on your machine: the Node.js server, the database and your environment variables. On the internet, those pieces have to live with a provider:

  • An environment that runs Node.js permanently (not just static files), on a version compatible with your project.
  • A MySQL database with its credentials, reachable from your app but not exposed to the public.
  • Environment variables for the database connection and your API keys, kept out of the code.
  • A domain with HTTPS so your users reach a trustworthy address.
  • A deployment mechanism to ship each new version without breaking the previous one.

Many platforms solve only part of this: some host the frontend but not MySQL, others give you the server but the database is separate. That's why it's worth choosing before you start deploying.

Step by step: deploy your Node.js app with MySQL from Claude Code or Cursor

1. Check that your stack is compatible

Dongee Live publishes Node.js 20, 22 or 24 servers (Express, Fastify, Koa, Hono, Next.js in standalone mode and TanStack Start) and static sites (React, Vue, Svelte, Angular, Astro, Vite). The included database is MySQL. It isn't compatible with Python, Ruby, PHP or WordPress, Docker, or databases other than MySQL; if your app uses Postgres or MongoDB, ask your assistant to adapt it to MySQL before publishing or choose another platform.

2. Prepare the code for production

Ask Claude Code or Cursor to get the app ready following these rules (you can paste them into the chat as-is):

  • Read the database connection from the DATABASE_URL variable, with no username or password written in the code.
  • Use a MySQL client for Node.js, such as mysql2, or a MySQL-compatible ORM (Prisma, Drizzle or Sequelize).
  • Have a start script in package.json that launches the server in production mode.
  • Create the tables with migrations or an initialization script, so the empty production database ends up matching the one on your machine.
  • Store API keys (for example, AI model keys) as server environment variables, never in browser code.
  • If you use Next.js, set output: 'standalone' in next.config.

3. Install Dongee Live in your assistant

In the terminal where you work with Claude Code, Codex or Cursor, run this once:

npx skills add dongeelive/skills -g -y

This connects your assistant to Dongee Live via MCP, the mechanism that lets the AI talk to the platform and publish for you.

4. Choose a plan and create your account

Dongee Live has a free plan that allows commercial use (fair-use terms apply). Live Free allows 1 app; Live Pro costs 15 USD a month and allows 3 apps, and Live Team costs 29 USD a month and allows 10. See the plans on the Dongee Live plans page.

5. Tell your AI “publish”

Once the app works on your machine, type “publish” in Claude Code or Cursor. Dongee Live uploads the app (up to 100 MB per deployment from the MCP connector), puts it online and makes the MySQL database available in DATABASE_URL. If you built with Lovable, Bolt or v0, you can also connect the project's GitHub repository: every push is published automatically, with uploads of up to 32 MB.

6. Load the database schema and test

Run your migrations or the initialization script against the production database and test the full flow: sign-up, login, creating and reading data. Check the error logs if something doesn't connect; the most common failure is an environment variable with a different name.

7. Connect your domain and email

Every Dongee Live plan includes email on your plan's domain, for use via webmail or IMAP (not meant for bulk sending). That way your app and your contact email live in the same panel, with 24/7 human support in your language (the platform translates on the fly).

Common mistakes when deploying a Node.js app with MySQL

  • Credentials written in the code. If you pushed the database password to a repository, change it and use DATABASE_URL.
  • Using SQLite locally and MySQL in production without migrating. Queries and data types change; ask your assistant to test against MySQL before publishing.
  • Tables that don't exist in production. The production database starts empty: run the migrations.
  • Opening too many connections. Use a connection pool (mysql2 includes one) instead of opening a connection per request.
  • API keys in the frontend. Anyone can see them and spend your balance. Call AI models from your server. If your app uses several models, Dongee AI Router, Dongee's prepaid gateway to multiple AI models, gives you a single prepaid API for all of them.
  • Next.js without standalone mode. Without output: 'standalone' the deployment may fail.

If your app is going to serve real customers, also check our guide on what an AI-built app needs to be secure and stay online.

What if my app doesn't fit Dongee Live?

If your project is PHP or WordPress, it belongs on Dongee cPanel hosting. If you need a full server with total control, Docker or your own processes, look at Dongee Cloud servers. And if your business needs dedicated resources, daily backups and monitoring, check out Business Hosting.

Frequently asked questions

Do I need to know how to code to deploy my Node.js app?

No. Your AI assistant writes the code and Dongee Live publishes it when you say “publish”. It does help to understand what an environment variable and a migration are, so you can check that the app is properly connected to MySQL.

How do I connect my app to the MySQL database on Dongee Live?

Each app includes a MySQL database available in the DATABASE_URL variable. Your code just has to read that variable with a client like mysql2 or a MySQL-compatible ORM.

Can I use Postgres or MongoDB?

Not on Dongee Live, which includes only MySQL. If your app depends on Postgres or MongoDB, adapt it to MySQL or use another platform.

Which Node.js versions are supported?

Node.js 20, 22 and 24, with frameworks like Express, Fastify, Koa, Hono, Next.js in standalone mode and TanStack Start.

Do I need Git or SSH?

Not for the usual workflow. You publish from Claude Code, Codex or Cursor through the MCP connector. If you prefer, you can connect a GitHub repository and every push is published automatically.

Is there a free plan?

Yes. Live Free allows 1 app, with a MySQL database and email, and allows commercial use (fair-use terms apply). Live Pro costs 15 USD a month with 3 apps and Live Team 29 USD a month with 10 apps.

Can I use it from the United States or other countries?

Yes. Dongee Live can be purchased from the United States, Brazil and other countries with no country restrictions, and you can pay in USD, EUR, BRL and other currencies. You also get 24/7 human support in your language (the platform translates on the fly).

Can I also publish apps built with Lovable, Bolt or v0?

Yes. Connect the project's GitHub repository and every push is published automatically on Dongee Live. We explain it in where to host the app you built with ChatGPT or Lovable.

Ready to deploy? Install the skill with npx skills add dongeelive/skills -g -y, create your account on Dongee Live and tell your AI “publish”.

Comenta lo que quieras

Unete a la charla
Solo ingresa tu email