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

tylerreckart avatar dependabot[bot] avatar nodkz avatar

Watchers

James Cloos avatar  avatar

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.