Skip to content

Blog GraphQL — A simple blog application backend built with GraphQL, demonstrating how to create, read, update, and delete blog posts using a GraphQL API. The project showcases best practices for setting up a GraphQL server with Node.js and provides a clear example of managing blog data through queries and mutations.

Notifications You must be signed in to change notification settings

dmytroPolhul/blog-graphql

Repository files navigation

Blog GraphQL API

This repository contains the GraphQL API for the Blog application.

Prerequisites

Before you begin, ensure you have the following installed:

Useful Links

Getting Started

Installation

  1. Install the required packages:

    npm install

    Alternatively, you can use the shorthand:

    npm i
  2. Review the .env-example file in the root of the project. Create a .env file in the same location and populate it with your specific environment variables.

  3. Start the application:

    npm run start

Testing

Running Tests

  1. To execute the tests, run:
    npm run test

Test Coverage

  1. To generate a test coverage report, run:
    npm run test:cov

Docker

For local testing and development using Docker:

  1. Start the Docker containers:
    docker compose up

Additional Information

All available commands can be found in the scripts section of the package.json file. The .env-example file in the root directory provides a template for environment variables.

About

Blog GraphQL — A simple blog application backend built with GraphQL, demonstrating how to create, read, update, and delete blog posts using a GraphQL API. The project showcases best practices for setting up a GraphQL server with Node.js and provides a clear example of managing blog data through queries and mutations.

Topics

Resources

Stars

Watchers

Forks