Back to Documentation
Getting Started
Set up your Stratolink system from hardware to dashboard in a few simple steps.
Prerequisites
- RAK3172 development board or compatible LoRaWAN module
- PlatformIO CLI or PlatformIO IDE
- Node.js 18 or higher
- Supabase account (free tier available)
- The Things Network account (free tier available)
- Mapbox account (for map visualization)
Step 1: Hardware Setup
Begin by configuring your RAK3172 hardware. For detailed hardware setup instructions, see the Hardware Setup guide.
- Connect your RAK3172 to your computer via USB
- Install PlatformIO if you haven't already
- Clone the Stratolink repository
- Navigate to the firmware directory
Step 2: Configure Firmware
Set up your LoRaWAN credentials in the firmware:
- Copy
firmware/include/config.hvalues tofirmware/include/secrets.h - Edit
firmware/include/secrets.hwith your TTN credentials:DEV_EUIAPP_EUIAPP_KEY
- Build firmware:
pio run - Upload to device:
pio run --target upload
Step 3: Set Up Supabase
- Create a new Supabase project at supabase.com
- Navigate to the SQL Editor
- Run the schema SQL from
web/lib/supabase/schema.sql - Enable the PostGIS extension if not already enabled
- Copy your project URL and anon key from Settings → API
Step 4: Configure Web Application
- Navigate to the
webdirectory - Install dependencies:
npm install - Copy
.env.local.exampleto.env.local - Add your credentials to
.env.local:NEXT_PUBLIC_SUPABASE_URL- Your Supabase project URLNEXT_PUBLIC_SUPABASE_ANON_KEY- Your Supabase anon keyNEXT_PUBLIC_MAPBOX_TOKEN- Your Mapbox access token
- Start the development server:
npm run dev
Step 5: Configure TTN Webhook
- Log into The Things Network Console
- Navigate to Applications → Your Application → Integrations → Webhooks
- Add a new webhook with format: JSON
- Set webhook URL:
https://your-vercel-domain.com/api/ttn-webhook - Save the webhook configuration
Step 6: Deploy to Vercel
- Push your code to GitHub
- Import your repository in Vercel
- Add your environment variables in Vercel project settings
- Deploy
- Update your TTN webhook URL with your Vercel domain
Next Steps
- Learn how to use the dashboard in the Dashboard Guide
- Explore the API Reference for integration options
- Check Troubleshooting if you encounter issues
Need Help?
If you run into issues during setup, check our troubleshooting guide or contact support.