Files
archived-starters/examples/fastify/README.md
2021-05-26 01:33:41 -04:00

29 lines
710 B
Markdown

---
title: Fastify
description: A Fastify server
tags:
- fastify
- typescript
---
# Fastify Example
This example starts a [Fastify](https://www.fastify.io/) server.
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2Frailwayapp%2Fexamples%2Ftree%2Fmaster%2Fexamples%2Ffastify)
## ✨ Features
- Fastify
- TypeScript
## 💁‍♀️ How to use
- Install dependencies `yarn`
- Connect to your Railway project `railway link`
- Start the development server `railway run yarn dev`
## 📝 Notes
The server started simply returns a `{ message: "Hello world!" }` payload in JSON. The server code is located in the `index.ts` file.