Skip to content

BurakYs/fastify-example

Repository files navigation

Fastify Logo

🚀 Fastify Rest API

A simple example of a REST API using Fastify, TypeScript, Zod and Swagger.


🏠 Run Locally

# 1. Clone the repository:
git clone https://github.com/BurakYs/fastify-example.git

# 2. Go to the project directory:
cd fastify-example

# 3. Install dependencies:
npm install

# 4. Configure the environment variables:
cp .env.template .env

# 5. Edit the configuration files under the `src/config` directory according to your needs.
#    - `app.ts` - Edit production URL.

# 6. Run the project:
npm run dev

🧪 Run Tests

Run the command below to run the tests:

npm test

📝 License

This project is licensed under the MIT License. See LICENSE for more information.

About

Fastify URL Shortener example with TypeScript, Swagger and Zod

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project