Skip to content
This repository has been archived by the owner on Dec 19, 2020. It is now read-only.

rafaelugolini/react-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Example

https://react-example-ayuajctpkc.now.sh/

An example of a react project using:

UI

  • material-ui

Store

  • redux
  • redux-saga
  • whatwg-fetch

Test & Linter

  • enzyme
  • eslint-config-airbnb
  • fetch-mock
  • redux-mock-store
  • redux-saga-test-plan

Running the app

Clone the repository, install the packages and run the app.

git clone https://github.com/rafaelugolini/react-example.git
cd react-example
npm install
npm start

The app is now accessible at http://localhost:3000

Containers

main

The app has only one container which access the store and dispatch the actions

Components

profileList

This component is called in the main container and it renders a profile component for each stock

profile

Displays the stock information and renders the profileDetails with more details

profileDetails

Displays stock details received from profile

Tests

All of the tests are located under __test__ and its mocked data located under __mocks__

To run the tests

npm test

To see the coverage

npm test -- --coverage

Deploy

I'm using now from zeit.co

npm run deploy