Coder Social home page Coder Social logo

test-analytics's Introduction

Frontend architecture

The project is structured as follows:

  • src/components: React components are reusable pieces of the application (such as a button).

  • src/pages: React pages correspond to the application pages (such as the home page). Sub-components of these pages should be in sub-folders of each page, if they cannot be reused anywhere else.

  • src/redux: Redux actions/reducers/sagas/selectors are all grouped by page in this folder (following the ducks pattern). Learn more about Redux by reading the documentation.

Quick start

Useful commands:

  • yarn to install dependencies

  • yarn start to start a local dev-server

  • yarn build to build a minified version of the code, for production use!

  • yarn test to launch tests in watch mode

  • yarn generate to generate a new component or a new page. You will be prompted the following questions:

    • Do you want a page or a component?
    • What is the name of the component?
    • What is the type of the component? Choose between PureComponents, Components and stateless functions for your React component.
    • Do you want to connect your component to the Redux store? Use Redux to handle your global state.
    • Do you want to use react-intl? Use react-intl to handle the translations within your application.
    • Do you want to use styled-components? Use styled-components to easily style your components using a CSS syntax.
    • Do you want snapshot tests? Snapshot tests allow you to easily lock the comportment of a component.

Going further

Other useful commands:

  • yarn flow to generate flow configuration for your node_modules

  • yarn lint:fix to automatically fix linting errors

  • yarn test:coverage to generate the coverage

  • yarn nsp to spot security breaches in your application

  • yarn analyze to analyze the production bundle size

For more see create-react-app documentation

test-analytics's People

Watchers

James Cloos 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.