Environments
Novacore testnet and mainnet environments, base URLs, and when to use each.
Novacore runs in two environments. Use testnet for development and testing, mainnet for production.
Environment URLs
| Service | Testnet | Mainnet |
|---|---|---|
| REST API | https://novacore-testnet.sourceful.dev | https://novacore-mainnet.sourceful.dev |
| MQTT | mqtts://novacore-testnet.sourceful.dev:8883 | mqtts://novacore-mainnet.sourceful.dev:8883 |
| NATS WebSocket | wss://novacore-testnet.sourceful.dev:4443 | wss://novacore-mainnet.sourceful.dev:4443 |
When to Use Each
Testnet
Use testnet during development:
- Safe to experiment — no real energy devices affected
- Test authentication flows, device provisioning, and API integration
- Data may be periodically reset
Mainnet
Use mainnet for production applications:
- Real devices and real energy data
- Production SLA guarantees
- Persistent data and configurations
Switching Environments
The API interface is identical between environments. To switch, change your base URL:
// Development
const BASE_URL = "https://novacore-testnet.sourceful.dev";
// Production
const BASE_URL = "https://novacore-mainnet.sourceful.dev";
Identities and organizations are separate between testnet and mainnet. You'll need to register and set up your org in each environment independently.
Knowledge gap for Tobias/Johan: Are there simulated/test devices available on testnet? What are the rate limits per environment? Is testnet open for self-service registration?
Related Documentation
- Quickstart - First API call on testnet
- API Overview - Full REST API reference