The course website is static HTML and can remain on shared hosting behind Cloudflare. A Dart backend is a separate running service. PHP-only shared hosting does not gain a Dart runtime by receiving a compiled tutorial ZIP.
Choose a host that supports the process
Use a suitable VPS, managed container service or a supported serverless runtime. The host must support the target executable/container, networking, configuration and the service’s storage model. Reserve a backend origin such as api.example.com only after deciding the hosting architecture.
Build and run the intended artifact
The downloadable task project includes a container recipe as a starting point. On a machine with Docker, build and run it locally:
docker build -t fever-tasks-api .
docker run --rm -p 8080:8080 fever-tasks-api
The container listens on all interfaces inside the container and reads PORT. The ordinary Dart entry point defaults to loopback. Its health endpoint is /health. Pin the runtime image revision for a real release and test the actual Linux image; Windows-native tests do not verify that container.
For a native build without hooks, dart compile exe bin/server.dart -o build/server creates an executable for the build target. If a dependency uses build hooks, review the current Dart build workflow rather than assuming this command handles every native package.
Close the teaching gaps before public use
The sample has no authentication and only in-memory data. Add the identity/ownership and persistence contracts from the earlier lessons before exposing real user data. Configure TLS through the chosen platform/proxy, request deadlines, size/concurrency/rate limits and useful monitoring.
Keep secrets in the hosting platform’s server-side configuration. Set readiness/health behavior appropriately and perform graceful shutdown so active work and connections are handled deliberately. Test a restart and verify durable data survives.
Configure the frontend connection
The Flutter client uses the deployed HTTPS API origin. A browser client may need a specific CORS allowlist; native mobile clients have different network/platform requirements. Cloudflare can proxy HTTP traffic, but static hosting or a cache rule does not itself execute the Dart process.
Exercise
Write a deployment plan naming the runtime, persistence, identity provider, configuration source, health check, rollback and monitoring. Run a local release artifact and verify a CRUD request. Record separately which cloud/container checks have actually been performed.