This guide contains the development environment setup for Fonoster. It includes the API Server and supporting infrastructure.Documentation Index
Fetch the complete documentation index at: https://docs.fonoster.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Docker and Docker Compose
- NodeJS >= v20
- Git (Optional)
Hacking the Backend
To start hacking the backend, start by cloning the project, and copying the .env.example.dev and ./config/integrations.example.json Here is an example:| Variable | Description |
|---|---|
| ROUTR_EXTERNAL_ADDRS | The IP used by Routr to advertise it’s address to othe SIP endpoints |
| ROUTR_RTPENGINE_HOST | The address of RTPEngine |
| ASTERISK_SIPPROXY_HOST | Address pointing to Routr SIP Server |
| APISERVER_ROUTR_API_ENDPOINT | The entrypoint to Routr’s API |
| DOCKER_HOST_ADDRESS | The address of the host machine |
envoy, mailhog, adminer, influxdb, postgres, and asterisk.
Finally, start the API Server with: