Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rusiruavb/itp-guide-post-api
- Owner: rusiruavb
- Created: 2024-08-22T03:49:37.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T11:43:00.000Z (3 months ago)
- Last Synced: 2024-10-12T02:42:07.364Z (about 1 month ago)
- Topics: fastify, itp-guide, ms-club-sliit, postgresql, prisma
- Language: JavaScript
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```