Node.js Express API with File Upload + Linear Integration (using AWS S3)

Step 1: Install Dependencies

npm install express multer axios dotenv aws-sdk

πŸ“ Step 2: Project Structure

project/
β”‚
β”œβ”€β”€ index.js
β”œβ”€β”€ .env

πŸ› οΈ Step 3: .env Configuration

PORT=3000

LINEAR_API_KEY=your_linear_api_key
LINEAR_TEAM_ID=your_linear_team_id

AWS_ACCESS_KEY_ID=your_aws_access_key_id
AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
AWS_REGION=your_aws_region
S3_BUCKET_NAME=your_s3_bucket_name

🧠 Step 4: index.js – Express App Using AWS S3


πŸ§ͺ Step 5: Test with curl


Output (Expected)

  • The file is uploaded to S3 in the linear_issues/ folder.

  • A new Linear issue is created with a link to the uploaded file.

  • Receive a JSON response:

Last updated