A comprehensive tutorial repository for setting up and running n8n - the workflow automation platform. This repository contains all necessary resources, configurations, and examples to get you started with n8n quickly.
- What is n8n?
- Features
- Prerequisites
- Quick Start
- Directory Structure
- Configuration
- Usage
- Example Workflows
- Troubleshooting
- Best Practices
- Resources
- Contributing
- License
n8n (pronounced "nodemation") is a free and open-source workflow automation tool. It's designed for technical users who need flexible automation capabilities with a node-based approach.
Key Benefits:
- Self-hosted: Full control over your data and workflows
- Extensible: Create custom nodes and integrations
- Fair-code licensed: Source available with a sustainable business model
- Visual workflow editor: Intuitive drag-and-drop interface
- 400+ integrations: Connect to popular services and APIs
This starter repository provides:
- π³ Docker Compose setup for easy deployment
- π Pre-configured environment templates
- π Example workflow templates
- π Comprehensive documentation
- π οΈ Best practices and guidelines
- π Security configurations
- π Production-ready setup options
Before you begin, ensure you have the following installed:
- Docker: Version 20.10 or higher
- Docker Compose: Version 1.29 or higher
- Git: For cloning the repository
- At least 2GB of RAM available
- Port 5678 available (default n8n port)
git clone https://github.com/adarshba/redesigned-engine.git
cd redesigned-enginecp .env.example .env
# Edit .env with your preferred settingsdocker-compose up -dOpen your browser and navigate to:
http://localhost:5678
Create your owner account on first access.
.
βββ README.md # This file
βββ docker-compose.yml # Docker composition for n8n
βββ .env.example # Environment variables template
βββ .gitignore # Git ignore rules
βββ workflows/ # Example workflow JSON files
β βββ hello-world.json
β βββ webhook-example.json
β βββ scheduled-task.json
βββ examples/ # Additional examples and scripts
β βββ backup-script.sh
β βββ restore-script.sh
βββ docs/ # Additional documentation
β βββ GETTING_STARTED.md
β βββ BEST_PRACTICES.md
β βββ TROUBLESHOOTING.md
βββ .n8n/ # n8n data directory (created by Docker)
Key environment variables in .env:
| Variable | Description | Default |
|---|---|---|
N8N_PORT |
Port for n8n web interface | 5678 |
N8N_PROTOCOL |
HTTP protocol (http/https) | http |
N8N_HOST |
Hostname for n8n | localhost |
WEBHOOK_URL |
Base URL for webhooks | http://localhost:5678/ |
GENERIC_TIMEZONE |
Timezone for n8n | America/New_York |
N8N_BASIC_AUTH_ACTIVE |
Enable basic auth | false |
N8N_BASIC_AUTH_USER |
Basic auth username | - |
N8N_BASIC_AUTH_PASSWORD |
Basic auth password | - |
For production deployments, consider:
- Setting up HTTPS with SSL certificates
- Configuring a reverse proxy (nginx/traefik)
- Setting up database persistence (PostgreSQL/MySQL)
- Implementing backup strategies
- Configuring authentication methods
See docs/BEST_PRACTICES.md for detailed guidance.
# Start in detached mode
docker-compose up -d
# Start with logs visible
docker-compose up
# Start specific services
docker-compose up n8n# Stop all services
docker-compose down
# Stop and remove volumes (β οΈ removes all data)
docker-compose down -v# View all logs
docker-compose logs
# Follow logs in real-time
docker-compose logs -f
# View logs for specific service
docker-compose logs -f n8n# Create a backup
./examples/backup-script.sh
# Restore from backup
./examples/restore-script.sh backup-file.tar.gzThis repository includes several example workflows in the workflows/ directory:
A simple workflow demonstrating basic node connections and data flow.
Demonstrates how to create and use webhooks to trigger workflows.
Shows how to set up cron-based scheduled workflows.
- Access n8n at
http://localhost:5678 - Click "Workflows" β "Import from File"
- Select a workflow JSON file from the
workflows/directory - Configure any required credentials
- Activate the workflow
Port 5678 already in use:
# Change N8N_PORT in .env file
N8N_PORT=5679Cannot access n8n:
- Verify Docker containers are running:
docker-compose ps - Check logs:
docker-compose logs -f n8n - Ensure firewall allows access to the configured port
Workflow not executing:
- Check workflow is activated (toggle in top-right)
- Verify credentials are properly configured
- Review execution logs in n8n interface
For more detailed troubleshooting, see docs/TROUBLESHOOTING.md.
- Version Control: Track your workflow JSON files in Git
- Environment Variables: Never commit sensitive credentials
- Backups: Regularly backup your n8n data directory
- Updates: Keep n8n updated to the latest stable version
- Security: Use HTTPS in production and enable authentication
- Documentation: Document custom workflows and integrations
- Testing: Test workflows in a development environment first
See docs/BEST_PRACTICES.md for comprehensive guidelines.
- n8n Quick Start Guide - Official getting started video
- Docker Installation Tutorial - Setting up n8n with Docker
- Creating Your First Workflow - Step-by-step workflow creation
- Webhook Workflows - Working with webhooks in n8n
- n8n Full Course - Complete beginner to advanced tutorial
- YouTube Channel - Official n8n channel with latest videos
- Getting Started with n8n - Official quick start guide
- Workflow Examples - Community-contributed workflow templates
- Creating Your First Workflow - Workflow basics
- Understanding Nodes - Node concepts and usage
- Expressions and Variables - Working with data
- Discord Server - Active community support and discussions
- Community Forum - Ask questions and share knowledge
- Twitter - Latest updates and announcements
- Reddit r/n8n - Community discussions
- n8n Blog - Tutorials, use cases, and updates
- Workflow Templates - Browse 1000+ ready-to-use workflows
- API Documentation - n8n API reference
- Self-Hosting Guide - Production deployment guide
Contributions are welcome! Please feel free to submit a Pull Request. For major changes:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
n8n itself is licensed under the Sustainable Use License.
Note: This is a starter template repository. Customize it according to your specific needs and requirements.
For questions or support, please open an issue in this repository.