Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amodinho/formulaone-graphql-client

The front-end for 'FanBoost', powered by React-Apollo! πŸŽπŸ‚
https://github.com/amodinho/formulaone-graphql-client

apollo cssgrid grapql react tdd testing

Last synced: 26 days ago
JSON representation

The front-end for 'FanBoost', powered by React-Apollo! πŸŽπŸ‚

Awesome Lists containing this project

README

        

# Fan Boost🏎

![Screenshot](screenshot-localhost-3001-2018.10.31-16-41-09.png)

This is the front-end for FanBoost. It is written in React and uses Apollo as it's bindings to a GraphQL server. FanBoost allows users to create Formula One Circuits and Drivers. Users can also 'fan-boost' drivers to see which drivers have the most boosts. Users can also enjoy curated F1 video content. Users' accounts are secured using JWTs.

Most of the typical GraphQL use cases are explored in this project such as Queries, Mutations and Subscriptions. The app is an SPA which lives on Netlify. If you're looking to learn how to use GraphQL on the front-end then you have landed in the right place!

## Features

* React-Apollo: Helps you connect to a GraphQL server and access `` and `` components to send and recieve data from your GraphQL API.
* Tachyons: A CSS-Framework.
* CSS Grid: A spec for creating grid layouts natiely.
* Jest & Enzyme: Tooling for writting tests.
* Maps Interagtiong: This is powered by Google Maps

The back-end repo is [here](https://github.com/AmoDinho/formulaone-graphql/blob/master/README.md)

This project uses yarn which can be downloaded from [here](https://yarnpkg.com/en/).

# Setup Instructions

First clone the repo

```
$ git clone https://github.com/AmoDinho/formulaone-graphql-client.git

```

Then you need to install the dependancies:

```
$ yarn install
```

Then you start the dev server:

```
$ yarn start

```

Your backend server should be running on `localhost://3000`, create-react-app will default to `localhost://3001` for you.

# Deployment Instructrions

**TO BE DONE**

The Design System is on [Figma](https://www.figma.com/file/CmYEyRWOtCuT2fgiTZrsNsMp/F1-App?node-id=0%3A1).

The following resources were used to create this app:

* [Advanced React](https://github.com/wesbos/Advanced-React)
* [Boilerplate for a Fullstack GraphQL App with React & Prisma](https://github.com/alan345/naperg)
* [How to GraphQL:React-Apollo](https://github.com/howtographql/react-apollo)
* [React-Apollo Docs](https://www.apollographql.com/docs/react/)
* [GraphQL Docs](https://graphql.org/)