Coder Social home page Coder Social logo

soltrinox / m-aureci-react-graphql-apollo-redux-reacttesting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m-aureci/m-aureci-react-graphql-apollo-redux-reacttesting

0.0 2.0 0.0 172 KB

React + GraphQL + Apollo Client + Redux + React Testing Library + create-react-app + react-router-dom

Shell 0.12% HTML 0.73% JavaScript 98.98% CSS 0.16%

m-aureci-react-graphql-apollo-redux-reacttesting's Introduction

React + GraphQL + Apollo Client + Redux + React Testing Library + create-react-app + react-router-dom ๐Ÿ‘‹

Demonstration: https://m-aureci-react-graphql-apollo-redux-reacttesting.vercel.app/

Installation

  • You need to have NodeJS installed in your computer.
  • yarn install # to install deps
  • yarn start # to run in dev mode
  • yarn test # to run tests

Project using React and the GraphCountries API

Demonstration: https://m-aureci-react-graphql-apollo-redux-reacttesting.vercel.app/

Consume the Graphql API GraphCountries.

Using React and Apollo Client 3.0.

This project was bootstrapped with Create React App.

Used Redux to manage state.

React router used to switch pages.

React Testing Library used for testing.


Scripts

yarn install     # to install deps
yarn run start   # to run in dev mode
yarn run build   # to build for prod
yarn run test    # to run tests

Layout

I tried to make it as clean as possible.

There are three pages: Home, Detail and Detail Editor:

  1. Home: Home.js -> [ Search.js -> List.js -> Card.js ] ->
  2. Detail: Details.js -> [ MapWorld.js -> Pointer.js ] ->
  3. Detail Editor: Edit.js -> Form.js.
  • Message.js is used by all pages.
  • They are in the components folder.

The "queriesservice" folder is where graphql queries are located for the GraphCountries API.

There are two more folders that are the "tests" and "routes".

State Management

Fields and the reactive variable of Apollo Client state management.

m-aureci-react-graphql-apollo-redux-reacttesting's People

Contributors

m-aureci avatar

Watchers

 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.