This is a RESTful API server built using TypeScript and Fastify. It provides a scalable and efficient framework for building web applications.
my-fastify-api
├── src
│ ├── index.ts
│ ├── plugins
│ │ └── index.ts
│ ├── routes
│ │ └── index.ts
│ └── types
│ └── index.ts
├── test
│ └── index.test.ts
├── package.json
├── tsconfig.json
├── jest.config.js
└── README.md
This file is the entry point of the application. It creates an instance of the Fastify server, sets up plugins, and registers routes.
This file exports a function registerPlugins
which sets up and registers plugins for the Fastify index.
This file exports a function registerRoutes
which sets up and registers routes for the Fastify index.
This file exports interfaces and types used in the project.
This file contains Jest tests for the index. It tests the routes and server functionality.
This file is the configuration file for npm. It lists the dependencies and scripts for the project.
This file is the configuration file for TypeScript. It specifies the compiler options and the files to include in the compilation.
This file is the configuration file for Jest. It specifies the testing framework options and setup.
- Clone the repository.
- Install the dependencies using
npm install
. - Build the project using
npm run build
. - Start the server using
npm start
.
Run the tests using npm test
.
This project is licensed under the GPL-3.0 License. See the LICENSE file for details.