A sample Fastify application ready to deploy to Fly.io.
You will need node. You can check the version using node --version.
- Clone this repo
- Duplicate
.env.examplenaming it.env - Run
npm installto install its dependencies - Run
npm startto run a local development server
You should be able to visit http://localhost:3000 and see the hello world JSON.
- Edit the provided
fly.tomlbased on your requirements: at least you should change the app's name:
app = "fly-hello-fastify"- Run
fly launch
You should be able to visit https://your-app-name.fly.dev and see the hello world JSON.