Indie Kit DocsIndie Kit Docs
Setup

Background Jobs Setup

Learn how to set up background jobs in your Indie Kit application using Inngest

Background Jobs Setup 🔄

Indie Kit comes with background jobs support powered by Inngest. Let's set it up! 🚀

Local Development 💻

Good news! Background jobs work out of the box in your local development environment. No additional setup needed!

The local Inngest server runs at:

http://localhost:8288/stream

You can use this URL to monitor your background jobs during development.

Production Setup ⚡

  1. Sign up for a free account at Inngest
  2. Create a new app in Inngest dashboard
  3. Get your Inngest API key

Hosting Options 🏢

Vercel (Recommended) ⭐

  1. Add INNGEST_EVENT_KEY to environment variables
  2. Deploy your app
  3. Add the Inngest integration in Vercel

Best choice for Indie Kit apps!

Refer to https://www.inngest.com/docs/deploy/vercel for more details.

Render

  1. Add INNGEST_EVENT_KEY to environment variables
  2. Follow Render-specific deployment steps
  3. Configure webhooks in Inngest dashboard

Refer to https://www.inngest.com/docs/deploy/render for more details.

Netlify

  1. Add INNGEST_EVENT_KEY to environment variables
  2. Set up Netlify functions
  3. Configure webhooks in Inngest dashboard

Refer to https://www.inngest.com/docs/deploy/netlify for more details.

Verifying Setup ✅

To verify your background jobs are working:

  1. Deploy your application
  2. Check the Inngest dashboard
  3. You should see your functions listed
  4. Test a background job (e.g., sending a test email)

Features Available 🎯

With background jobs set up, you can use:

  • ⏰ Scheduled tasks
  • 📧 Email sequences
  • 🔄 Retry mechanisms
  • 📊 Job monitoring
  • 🚨 Error handling

Best Practices 💡

  1. Always test jobs locally first
  2. Monitor job execution in production
  3. Set up alerts for failed jobs
  4. Use proper error handling
  5. Keep job logic idempotent

Now your Indie Kit application is ready to handle background jobs efficiently! 🎉

On this page