### Running Next.js Development Server Source: https://github.com/clickup/clickup-apiv2-demo/blob/main/frontend/README.md These commands start the local development server for the Next.js application. The server runs on http://localhost:3000 by default and supports hot-reloading. ```bash npm run dev # or yarn dev # or pnpm dev # or bun dev ``` -------------------------------- ### Start Backend Development Server (Shell) Source: https://github.com/clickup/clickup-apiv2-demo/blob/main/README.md Navigates to the backend directory and starts the Node.js development server using npm. This step is often done initially to perform OAuth login and obtain the access token. ```Shell cd backend npm run dev ``` -------------------------------- ### Start Frontend and Backend Development Servers (Shell) Source: https://github.com/clickup/clickup-apiv2-demo/blob/main/README.md Provides the commands to start both the backend and frontend development servers concurrently in their respective directories for full application functionality. ```Shell # In the backend directory npm run dev ``` ```Shell # In the frontend directory npm run dev ``` -------------------------------- ### Install Node.js Dependencies (Shell) Source: https://github.com/clickup/clickup-apiv2-demo/blob/main/README.md Navigates into the backend and frontend directories sequentially to install required Node.js packages using npm. ```Shell cd backend && npm install cd ../frontend && npm install cd ../ ``` -------------------------------- ### Set up Environment Variables (Shell/dotenv) Source: https://github.com/clickup/clickup-apiv2-demo/blob/main/README.md Copies the template environment file to create the actual .env file and provides an example of the required variables for ClickUp API credentials, redirect URI, session secret, and webhook secret. ```Shell cp backend/env.template backend/.env ``` ```dotenv CLICKUP_CLIENT_ID=your_client_id CLICKUP_CLIENT_SECRET=your_client_secret REDIRECT_URI=http://localhost:3000/auth/callback SESSION_SECRET=your_session_secret CLICKUP_WEBHOOK_SECRET=your_webhook_secret ``` -------------------------------- ### Clone the ClickUp APIv2 Demo Repository (Shell) Source: https://github.com/clickup/clickup-apiv2-demo/blob/main/README.md Clones the project repository from GitHub and navigates into the newly created project directory. ```Shell git clone git@github.com:time-loop/clickup-APIv2-demo.git cd clickup-APIv2-demo ``` -------------------------------- ### Forward Webhooks with Smee.io (Shell) Source: https://github.com/clickup/clickup-apiv2-demo/blob/main/README.md Uses the npx command to run the Smee.io client, forwarding incoming webhooks from the specified Smee channel URL to the local webhook endpoint running on localhost:3000. ```Shell npx smee -u https://smee.io/your_channel_id -t http://localhost:3000/webhook ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.