# fastify-typescript **Repository Path**: zoujiaqing/fastify-typescript ## Basic Information - **Project Name**: fastify-typescript - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: dependabot/npm_and_yarn/got-and-nodemon--removed - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-15 - **Last Updated**: 2024-08-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](https://www.postgresql.org/). To set up your database, run: ```sh npm run prisma:save npm run prisma:dep ``` ### 3. Generate Prisma Client (type-safe database client) Run the following command to generate [Prisma Client](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/generating-prisma-client): ```sh npm run prisma:gen ``` ### 4. Start the Fastify server Launch your Fastify server with this command: ```sh npm run dev ``` ## For Build Generation Build server with command: ```sh npm run build ``` ## Prisma documentation - Check out the [Prisma docs](https://www.prisma.io/docs/) - Check out the [Fastify docs](https://www.fastify.io/docs/latest/)