Giter Club home page Giter Club logo

graphql-news's Introduction

GraphQL News

This repository serves as the monorepo codebase for the GraphQL News API & Client built in the GraphQL in Motion video course. Every line of code written throughout the course that does not contain sensitive deployment information lives in this repository.

Codebase

Full-stack JavaScript: This repository is comprised of two main components. The API, written in Node.js, and the client, written in React. Almost all of the code you'll touch in this codebase will be JavaScript, aside from the SCSS used for styling.

Folder Structure

graphql-news/
├── src/            # Source for the frontend SPA and server
│   ├── components  # Reusable React components for the frontend
│   ├── screens     # React component views for the frontend
│   ├── scss        # Source for component/view styles for the frontend
│   ├── server      # API server
└── public          # Public files used on the frontend

First time setup

The first step to running GraphQL News locally is by downloading and cloning the repository:

git clone [email protected]:graphql-in-motion/graphql-news.git

If you recieve a Permission denied error using ssh, please refer here, or use the https link as a fallback.

git clonse https://github.com/graphql-in-motion/graphql-news.git

Installation

  1. Install MongoDB: See the MongoDB documentation for instructions on installing it on your system's OS.
  2. Install yarn: We use yarn to handle our JavaScript dependencies.
npm i -g yarn
  1. Install the dependencies:
yarn install

Running the app locally

Background Services
Whenever you want to run the GraphQL News client locally, you'll have to have MongoDB running in the background.

mongod

Start the server Depending on what you'd like to do, you have two options for running the server. You can start the server in development mode by running yarn run dev:server. No matter what your doing though, you'll need the API running in the background, which can be achieved by running

yarn start:server

Develop the client UI
To develop the frontend and run app in development mode (see the Create React App documentation for more info) run

yarn dev:web

Note: If something didn't work or you ran into troubles please submit PRs to improve this doc and keep it up to date!

graphql-news's People

Contributors

dependabot[bot] avatar nodkz avatar tylerreckart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

graphql-news's Issues

Unit 4 - Resources & Exercises

Module 1 - Mutations

Short module description.

Further Reading

Exercises

  • Task

Module 2 - Connectors

Short module description.

Further Reading

Module 3 - Authentication

Short module description.

Further Reading

Module 4 - Dataloaders

Short module description.

Further Reading

Module 5 - Subscriptions

Short module description.

Further Reading

Module 6 - Filtering & Pagination

Short module description.

Further Reading

Unit 3 - Resources & Exercises

Module 1 - Nested Queries

Short module description.

Further Reading

Exercises

  • Task

Module 2 - Recursive Relationships

Short module description.

Further Reading

Module 3 - Circular References

Short module description.

Further Reading

Module 4 - Fragments & Aliases

Short module description.

Further Reading

Unit 1 - Resources & Exercises

Module 1 - Introduction/ What is GraphQL?

This module serves as an introduction to the course and quickly goes over what GraphQL is and why one may be interested in adding it to their portfolio.

Further Reading

Module 2 - GraphQL vs REST

A brief overview the rapidly changing requirements of client-side applications that have outgrown REST's inherently static nature and how GraphQL might be a possible solution.

Further Reading

Module 3 - Hello World

In this module we get our API up and running with Express.

Further Reading

Unit 2 - Resources & Exercises

Module 1 - GraphQL Schemas

Short module description.

Further Reading

Exercises

  • Task

Module 2 - Queries

Short module description.

Further Reading

Module 3 - Resolve Functions

Short module description.

Further Reading

Module 4 - Nodemon

Short module description.

Further Reading

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.