Skip to content

ffcabbar/react-apollo-client-and-server-todoapp

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

TodoAppWithApolloClient

Client: React.js with ApolloClient && Server: ApolloServer ๐Ÿค˜ :)

Get started

Clone the repository:

git clone https://github.com/ffcabbar/react-apollo-client-and-server-todoapp.git

Install dependencies and run the app:

cd server
yarn install # or npm install
yarn start   # or npm start
๐ŸŒ 
cd client
yarn install # or npm install
yarn start   # or npm start

Testing

Open your browser at http://localhost:5555 and start sending queries.

Query:

query {
  todos {
    text
    id
    completed
  }
}

The server returns the following response:

{
  "data": {
    "todos": [
      {
        "text": "Hello from GraphQL",
        "id": "1583752618984",
        "completed": true
      },
      {
        "text": "react",
        "id": "1583752700115",
        "completed": true
      },
      {
        "text": "graphql",
        "id": "1583752704968",
        "completed": false
      }
    ]
  }
}

Playground

play

About

A todo app built using GraphQL, Node, Express, Apollo Client-Server and React. Queries, mutations and subscriptions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published