This boilerplate is generated using Create React App with the Typescript preset and contains the libraries and guidelines defined by Intesys.
You can read the original README here
Use npm install
to install dependencies.
npm run start
, runs the app in development mode. Open http://localhost:3000 to view it in the browser.npm run test
, runs the testsnpm run api
, runs the api backend viaopenapi-server
commandnpm run start:api
, runs concurrently the api server and the uinpm run build
, builds the uinpm run coverage
, run tests with coverage
Basic folder structure:
build/dist/
public/
src/
assets/
// put here the static assets
config/
// configuration files
modules/
// one folder per module / container
shared/
// shared components and libraries
types/
// shared types definitions
// (local type definitions are allowed inline)
App.tsx
index.ts
routes.tsx
Module structure:
[moduleName]/
ContainerName.tsx
ContainerName.test.jsx
LocalComponentName.tsx
LocalComponentName.test.tsx
Modules follow the Duck convention.
Test: use Jest + Enzyme [ TODO: add details ]
This boilerplate includes the following libraries, that you should use for preference:
Used for async HTTP calls
Used for testing
Nodejs local api proxy with mocks and (optional) validation over openApi
In order to change page headers
For internationalization