Skip to content

AlbaAdili/Posts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

GraphQL API for managing posts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published