Setting Up N8N:
Cloud vs Self-Hosted
There are three ways to get N8N running: the managed cloud service, self-hosting with Docker, or running it locally via npm. In this lesson you will set up N8N, explore all three methods, and take a tour of the full interface — canvas, node panel, execution history, and credentials manager.
Option 1 — N8N Cloud (Fastest Start)
N8N Cloud at n8n.cloud is the managed hosted version. You sign up, and N8N is ready within seconds — no server setup, no Docker, no port configuration. It comes with a free trial so you can explore everything before committing.
Option 2 — Self-Hosted with Docker
Docker is the most popular way to self-host N8N. It packages N8N with all its dependencies into a single container. Your data stays on your server, executions are unlimited, and you have full control.
docker run -it --rm \ --name n8n \ -p 5678:5678 \ -v ~/.n8n:/home/node/.n8n \ n8nio/n8n
Breaking down the flags: -p 5678:5678 maps the container port to your machine, -v ~/.n8n:/home/node/.n8n mounts a volume so your workflows persist when the container restarts.
-v ~/.n8n:/home/node/.n8n volume flag is critical. Without it, all your workflows and credentials are lost when the container stops. Always include it.Option 3 — Self-Hosted with npm
If you have Node.js installed, you can run N8N directly via npm. This is the simplest approach for local development and testing.
npm install n8n -g
n8n start
After running n8n start, open your browser and navigate to http://localhost:5678. N8N will guide you through the initial account setup.
- No setup required
- Auto-updates included
- Free trial available
- Global CDN, 99.9% uptime
- Monthly subscription cost
- Data on N8N servers
- Full data control
- Unlimited executions
- Easy to upgrade
- Runs on any VPS
- Requires Docker knowledge
- Manual update process
- Simplest install
- Good for local testing
- No Docker needed
- Fast to get started
- Not ideal for production
- Requires Node.js v18+
Interface Tour: The 4 Key Areas
Once N8N is running, you will see the main editor. It has four primary areas you need to understand before building your first workflow:
Tab to add a node, Ctrl+Enter to execute the workflow, Ctrl+Z to undo, and Ctrl+D to duplicate a selected node.🧠 Setup Knowledge Check
-v ~/.n8n:/home/node/.n8n flag do in the Docker command?