Skip to content

rusiruavb/fastify-prisma-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Post API Service

This is a simple API service for managing posts and users, built with Fastify and Prisma.

Prerequisites

  • Node.js
  • Fastify
  • PNPM
  • Prisma

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd post-api-service
  2. Install dependencies:

    pnpm install
  3. Set up the environment variables:

    cp .env.example .env
  4. Run the migrations:

    pnpm prisma migrate dev

Running the Application

Development

To start the application in development mode:

pnpm run dev