URL: https://lovable.dev/projects/REPLACE_WITH_PROJECT_ID
This project uses n8n for workflow automation alongside the React application. Both services run locally for development.
- Node.js & npm (install with nvm)
- Docker and Docker Compose (install Docker)
- Clone the repository
git clone <YOUR_GIT_URL>
cd <YOUR_PROJECT_NAME>- Install dependencies
npm i- Start n8n (in one terminal)
npm run docker:up- Start React app (in another terminal)
npm run dev- Access the applications
- React App: http://localhost:8080
- n8n: http://localhost:5678
npm run dev- Start Vite development server (React app)npm run docker:up- Start n8n in Docker (detached mode)npm run docker:down- Stop n8n containernpm run docker:logs- View n8n logsnpm run docker:restart- Restart n8n containernpm run docker:debug- Start n8n in debug mode (foreground)npm run dev:full- Start both n8n and React app togethernpm run build- Build for productionnpm run test- Run testsnpm run lint- Run ESLint
n8n is configured via .env.docker file. Default settings:
- Host: localhost
- Port: 5678
- Protocol: http
- Basic Auth: disabled (for local dev)
To customize, edit .env.docker or set environment variables.
Existing n8n workflows are available in the n8n-hosting/ directory and are mounted to the container at /workflows.
To import:
- Open n8n at http://localhost:5678
- Click "Import from File"
- Navigate to
/workflows/and select a workflow JSON file
n8n data (workflows, credentials, executions) is stored in ./n8n-data/ which persists across container restarts.
Port conflicts: If port 5678 or 8080 is already in use:
- Stop other services using these ports, or
- Modify the port mappings in
compose.yaml
n8n not starting: Check logs with npm run docker:logs
React app not connecting to n8n: Verify VITE_N8N_WEBHOOK_URL in .env file
There are several ways of editing your application.
Use Lovable
Simply visit the Lovable Project and start prompting.
Changes made via Lovable will be committed automatically to this repo.
Use your preferred IDE
If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in Lovable.
The only requirement is having Node.js & npm installed - install with nvm
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 devEdit a file directly in GitHub
- Navigate to the desired file(s).
- Click the "Edit" button (pencil icon) at the top right of the file view.
- Make your changes and commit the changes.
Use GitHub Codespaces
- Navigate to the main page of your repository.
- Click on the "Code" button (green button) near the top right.
- Select the "Codespaces" tab.
- Click on "New codespace" to launch a new Codespace environment.
- Edit files directly within the Codespace and commit and push your changes once you're done.
This project is built with:
- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS
Simply open Lovable and click on Share -> Publish.
Yes, you can!
To connect a domain, navigate to Project > Settings > Domains and click Connect Domain.
Read more here: Setting up a custom domain