/beagle-forms-react

React Application using for Beagle Web Example

Primary LanguageTypeScript

React Forms using Beagle Web

About the project

This project is an example of how to use Beagle in react web development

Getting Started

yarn

Environments

We have 2 environments to run:

  • production access the real API
  • mock servers a mock data to test the flow and develop faster

To start the project you can use one of the commands above

yarn start
yarn start:mock

Folder structure

  • public (is a folder to public files)
  • src (is the source path of the application)
    • containers components that hold some logic and state control
    • components (dumb components to visual concepts)
    • core (here we have api definition, utils and general configuration)
    • hooks (custom hooks)
    • routes (application routes)
    • store (store configuration)
  • stub (mock server configuration)
  • unit-test (tests config using jest and enzyme)

Important dependencies

About Tests

There are two types of tests:

  • unit-tests for unit tests. Its configuration file is locate at src/core/unit-test.