Skip to content

Шаблон для серверных приложений на Fastify, TypeScript с автодокументацией через OpenAPI/Swagger, с валидацией входящих запросов на Zod, настроенной базой данных на Prisma и с автоматическим линтингом кода

License

Notifications You must be signed in to change notification settings

Neiz-Kap/backend-fastify-template

Repository files navigation

Fastify-Typescript

typescript based rest-API architecture with prisma and fastify framework.

How to use

1. Clone this repo & install dependencies

Install Node dependencies:

npm install

2. Set up the database

This uses Postgres database.

To set up your database, run:

npm run prisma:save
npm run prisma:dep

3. Generate Prisma Client (type-safe database client)

Run the following command to generate Prisma Client:

npm run prisma:gen

4. Start the Fastify server

Launch your Fastify server with this command:

npm run dev

For Build Generation

Build server with command:

npm run build

Prisma documentation

About

Шаблон для серверных приложений на Fastify, TypeScript с автодокументацией через OpenAPI/Swagger, с валидацией входящих запросов на Zod, настроенной базой данных на Prisma и с автоматическим линтингом кода

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7