Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 1.18 KB

README.md

File metadata and controls

54 lines (44 loc) · 1.18 KB

Posts

This project is a GraphQL-based application that utilizes Prisma for database management. It provides a GraphQL API for interacting with the underlying data model.

Features

  • GraphQL API with Prisma as ORM
  • Node.js backend
  • Uses Babel for ES6+ support
  • Dependency management with Yarn/NPM
  • Configured with .graphqlconfig for GraphQL tools

Installation

Prerequisites

Ensure you have the following installed:

Steps

  1. Clone the repository:

    git clone <repository-url>
    cd GraphQLProject/server
  2. Install dependencies:

    yarn install
    # or
    npm install
  3. Setup Prisma:

    npx prisma migrate dev --name init
  4. Start the development server:

    yarn start
    # or
    npm run start

Configuration

  • graphqlconfig: Configures GraphQL tools for development

  • prisma/datamodel.graphql: Defines the database schema

Usage

Once the server is running, you can access the GraphQL playground at:

http://localhost:4000

You can execute queries and mutations based on the provided schema.