The requirements are:
- Node.js & npm - install with nvm
- Docker & Docker Compose - install Docker and install Docker Compose
The n8n setup includes:
- n8n container: The main automation platform
- nginx container: Reverse proxy that handles routing and WebSocket connections
- Persistent storage: Your workflows and data are stored in
./n8n_data/
The nginx proxy is configured to handle iframe embedding and WebSocket connections properly, making it suitable for integration with web applications.
This project is built with:
- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS
- Docker & Docker Compose (for n8n)
- nginx (for n8n proxy)
Follow these steps:
# Step 1: Clone the repository using the project's Git URL.
git clone <YOUR_GIT_URL>
# Step 2: Navigate to the project directory.
cd <YOUR_PROJECT_NAME>
# Step 3: Install the necessary dependencies.
npm i
# Step 4: Start the development server with auto-reloading and an instant preview.
npm run devThis project includes a pre-configured n8n automation platform that runs via Docker. n8n is a workflow automation tool that helps you connect different services and automate tasks.
- Docker and Docker Compose installed on your system
- Git (to clone this repository)
- Navigate to the n8n directory:
cd n8n/- Fix permissions for the data directory:
# Create the data directory if it doesn't exist
mkdir -p ./n8n_data
# Set proper permissions (n8n runs as user ID 1000 in the container)
sudo chown -R 1000:1000 ./n8n_data/
sudo chmod -R 755 ./n8n_data/- Start n8n services:
sudo docker compose up -d- Access n8n:
Open your browser and go to
http://localhost:8081
Default credentials:
- Username:
admin - Password:
password
Start services:
sudo docker compose up -dStop services:
sudo docker compose downRestart services:
sudo docker compose restartView logs:
# View all logs
sudo docker compose logs
# Follow n8n logs in real-time
sudo docker compose logs -f n8n
# Follow nginx logs
sudo docker compose logs -f nginxCheck running containers:
sudo docker compose psIf you encounter permission issues:
- Stop the containers:
sudo docker compose down- Remove the data directory and recreate it:
sudo rm -rf ./n8n_data/
mkdir -p ./n8n_data/
sudo chown -R 1000:1000 ./n8n_data/
sudo chmod -R 755 ./n8n_data/- Start the containers again:
sudo docker compose up -d