Skip to content

The API to serve TechnoServe Coffee Program web app called "My PIMA"

License

Notifications You must be signed in to change notification settings

julesntare/my-pima-api

Repository files navigation

my-pima-api

GitHub license

Overview

The API to serve TechnoServe Coffee Program web app called "My PIMA"

Table of Contents

Getting Started

Explain how to get your GraphQL API project up and running. Include instructions on prerequisites, installation, and configuration.

Prerequisites

  1. Install Node.js
  2. Install PostgreSQL

Installation

Provide step-by-step installation instructions. For example:

  1. Clone this repository: git clone https://github.com/TechnoServe/my-pima-back.git
  2. Navigate to the project directory: cd my-pima-back
  3. Install dependencies: npm install
  4. Configure the environment variables from .env.example (if applicable).

Usage

Use apollo studio to test the API

API Documentation

Apollo Studio: [PIMA API documentation] (https://studio.apollographql.com/sandbox/explorer?endpoint=https://api.pima.ink/graphql)

// Sample GraphQL query using Apollo Client
import { ApolloClient, InMemoryCache, gql } from "@apollo/client";

const client = new ApolloClient({
  uri: "https://api.pima.ink/graphql",
  cache: new InMemoryCache(),
});

client
  .query({
    query: gql`
            query {
            // Your GraphQL query here
            }
        `,
  })
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

About

The API to serve TechnoServe Coffee Program web app called "My PIMA"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published