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.example
naming it.env
- Run
npm install
to install its dependencies - Run
npm start
to run a local development server
You should be able to visit http://localhost:3000
and see the hello world JSON.
- Edit the provided
fly.toml
based 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.