Skip to content

Latest commit

Β 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ n8n Free Cloud Deployment

Deploy to Render GitHub stars License: MIT

Deploy n8n to the cloud for FREE with one click! No credit card required, no complex setup, just pure automation power in the cloud.

✨ Why This Repository?

  • πŸ†“ 100% FREE - Deploy n8n to Render's free tier
  • ⚑ One-Click Deploy - No technical knowledge required
  • πŸ”’ Secure - HTTPS enabled by default
  • πŸ“± Mobile Ready - Access from anywhere
  • πŸ”„ Auto-Updates - Deploy from GitHub automatically
  • πŸ› οΈ Production Ready - Used by 14+ developers already

🎯 What You Get

  • Complete n8n setup with persistent database
  • Pre-configured environment for immediate use
  • Webhook support for external integrations
  • SQLite database for data persistence
  • Comprehensive documentation and troubleshooting
  • Local development scripts included

πŸ“Š Repository Stats

GitHub stars GitHub forks GitHub issues GitHub last commit

πŸš€ Quick Start

Option 1: Deploy to Render (Recommended - 100% Free)

Deploy to Render

One-click deployment to Render:

  • βœ… FREE: 750 hours/month
  • βœ… 24/7: Always running
  • βœ… HTTPS: Secure by default
  • βœ… Auto-deploy: Updates from GitHub
  • βœ… No credit card required

πŸ“– Render Deployment Guide

Option 2: Deploy to Railway (Paid - $5/month)

Deploy on Railway

One-click deployment to Railway:

  • βœ… FREE: 500 hours/month
  • βœ… 24/7: Always running
  • βœ… HTTPS: Secure by default
  • βœ… Auto-deploy: Updates from GitHub

πŸ“– Railway Deployment Guide

Option 3: Local Installation

Prerequisites:

  • Node.js (v18 or higher)
  • npm or yarn
  • Git

Installation:

  1. Clone this repository

    git clone https://github.com/Mugeshgithub/n8n-local-setup.git
    cd n8n-local-setup
  2. Make the startup script executable

    chmod +x start-n8n.sh
  3. Start n8n

    ./start-n8n.sh
  4. Access n8n

    • Open your browser
    • Go to: http://localhost:5678
    • Complete the one-time setup
    • Important: Check your email for the activation key
    • Enter the activation key when prompted to activate your n8n instance

πŸ“ Project Structure

n8n-local-setup/
β”œβ”€β”€ README.md                 # This guide
β”œβ”€β”€ start-n8n.sh             # Startup script
β”œβ”€β”€ .env.example             # Environment variables template
β”œβ”€β”€ database/                # SQLite database (created automatically)
└── workflows/               # Your workflow files (optional)

πŸ”§ Configuration

Environment Variables

Create a .env file based on .env.example:

cp .env.example .env

Edit .env with your settings:

# n8n Configuration
N8N_USER_FOLDER=/path/to/your/n8n/local
N8N_ENCRYPTION_KEY=your-encryption-key-here
N8N_HOST=localhost
WEBHOOK_URL=http://localhost:5678/

# Database Configuration
N8N_DATABASE_TYPE=sqlite
N8N_DATABASE_SQLITE_DATABASE=/path/to/your/n8n/local/database/n8n.db

# Optional: Performance Settings
DB_SQLITE_POOL_SIZE=10
N8N_RUNNERS_ENABLED=true
N8N_BLOCK_ENV_ACCESS_IN_NODE=false
N8N_GIT_NODE_DISABLE_BARE_REPOS=true

Generate Encryption Key

Generate a secure encryption key:

# Using Node.js
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"

# Or using OpenSSL
openssl rand -hex 32

πŸš€ Usage

Start n8n

./start-n8n.sh

Stop n8n

# Press Ctrl+C in the terminal where n8n is running
# Or find the process and kill it
pkill -f n8n

Restart n8n

pkill -f n8n
./start-n8n.sh

πŸ“Š Features

  • βœ… Persistent Database: SQLite database for data persistence
  • βœ… Easy Startup: One-command startup script
  • βœ… Clean Configuration: Environment-based configuration
  • βœ… Cross-Platform: Works on macOS, Linux, and Windows
  • βœ… No Docker Required: Direct Node.js installation

πŸ” Troubleshooting

Common Issues

  1. Port 5678 already in use

    # Find and kill the process using port 5678
    lsof -ti:5678 | xargs kill -9
  2. Permission denied on startup script

    chmod +x start-n8n.sh
  3. Database permission issues

    # Make sure the database directory is writable
    chmod 755 database/
  4. n8n asks for setup every time

    • Make sure you're using the startup script
    • Check that the database path is correct
    • Verify the N8N_USER_FOLDER is set properly
  5. Activation key issues

    • Check your email (including spam folder) for the activation key
    • The activation key is sent to the email you used during setup
    • If you don't receive it, check your email settings or try a different email
    • You can also try restarting n8n and going through setup again

Reset Everything

If you want to start fresh:

# Stop n8n
pkill -f n8n

# Remove database and config
rm -rf database/ .n8n/

# Start fresh
./start-n8n.sh

πŸ“š Next Steps

After setting up n8n locally:

  1. Complete the initial setup in the web interface
  2. Check your email for the activation key and enter it when prompted
  3. Create your first workflow or import existing ones
  4. Set up API credentials for external services
  5. Configure webhooks for external triggers
  6. Schedule workflows for automation

πŸ› οΈ Advanced Configuration

Custom Port

To use a different port, modify the startup script:

# Change N8N_HOST and WEBHOOK_URL in start-n8n.sh
N8N_HOST=localhost
WEBHOOK_URL=http://localhost:8080/

Custom Database Location

To use a different database location:

# Modify N8N_DATABASE_SQLITE_DATABASE in start-n8n.sh
N8N_DATABASE_SQLITE_DATABASE=/custom/path/to/database/n8n.db

Production Settings

For production use, consider:

  • Using PostgreSQL instead of SQLite
  • Setting up proper SSL certificates
  • Configuring reverse proxy (nginx/Apache)
  • Setting up monitoring and logging
  • Using environment-specific configurations

πŸ“– Resources

πŸ‘¨β€πŸ’» Created By

Mugesh M

⭐ How to Support This Project

If this helped you, please:

  • ⭐ Star this repository - it really helps!
  • 🍴 Fork it - create your own version
  • πŸ› Report issues - help improve it
  • πŸ’¬ Share it - tell others about it
  • πŸ’‘ Suggest features - what would you add?

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

Ways to contribute:

  • πŸ› Fix bugs and issues
  • ✨ Add new features
  • πŸ“ Improve documentation
  • πŸ§ͺ Add tests
  • πŸ’‘ Suggest improvements

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

⚠️ Disclaimer

This is a local development setup. For production use, please refer to the official n8n documentation for proper deployment and security considerations.


Happy automating with n8n! πŸš€

About

No description, website, or topics provided.

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages