mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
29 lines
710 B
Markdown
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.
|
|
|
|
[](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.
|