Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rusiruavb/itp-guide-post-api

Posts management API for ITP guide 8.1 session
https://github.com/rusiruavb/itp-guide-post-api

fastify itp-guide ms-club-sliit postgresql prisma

Last synced: 11 days ago
JSON representation

Posts management API for ITP guide 8.1 session

Awesome Lists containing this project

README

        

# Post API Service

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

### Prerequisites

- Node.js
- Fastify
- PNPM
- Prisma

### Installation

1. Clone the repository:

```sh
git clone
cd post-api-service
```

2. Install dependencies:

```sh
pnpm install
```

3. Set up the environment variables:

```sh
cp .env.example .env
```

4. Run the migrations:
```sh
pnpm prisma migrate dev
```

### Running the Application

#### Development

To start the application in development mode:

```sh
pnpm dev
```

To build the application

```sh
pnpm build
```

#### Production

To start the application

```sh
pnpm start
```