GithubHelp home page GithubHelp logo

ibrahima92 / apollo-graphql-full-stack Goto Github PK

View Code? Open in Web Editor NEW
31.0 4.0 15.0 1.74 MB

Full-stack Apollo GraphQL app using React and Node JS

JavaScript 75.08% HTML 15.72% CSS 9.20%
apollo-client apollo-server graphql-server react nodejs

apollo-graphql-full-stack's Introduction

Apollo GraphQL: How to build a Full-stack app with React and Node Js

Apollo Client is a complete state management library for JavaScript apps. It's a powerful tool since it can be used on both back-end and front-end side. In this tutorial, we will use it on both by building first an Apollo GraphQL Server with Node JS and then consume the data on the client-side using React JS.

Continue reading

apollo-graphql-full-stack's People

Contributors

dependabot[bot] avatar ibrahima92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

apollo-graphql-full-stack's Issues

Running this code on my own servers "something went wrong" each time.

Hi,

I know this is an absolute beginners question, but how does the client app know where to find the server? I'm running the server in one terminal and its listening on localhost:4000, and running the client in another terminal and its showing localhost:3000 but I can't for the life of me work out how they find each other. When I start the client I get "Something went wrong!" constantly and I'm guessing its because the client can't find the server?

More than an issue it may be a typo with a quick fix.

Hi there @ibrahima92 I hope you are doing well. While following your tutorial on FreeCodeCamp about apollo and graphql, I could notice that where it says:

// first add nodemon: yarn add nodemon --dev
  "scripts": {
    "start": "nodemon src/index.js"
  }

It should say:

// first add nodemon: yarn add nodemon --dev
  "scripts": {
    "start": "nodemon src/app.js"
  }

As in the tutorial we are creating the app.js as the main file for the server side. I have also tested already and in fact if you use the index.js it will throw and error because it is a nonexistent file. I hope maybe some newbies like me(just starting in the development world, as they may be confused while trying to follow the tutorial).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.