pviotti / openhospital-ui

OpenHospital software SPA (Single Page Application) for the User Internface (React)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React starter template by Intesys

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

Guidelines

Folder structure

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

Conventions

Modules follow the Duck convention.

Test: use Jest + Enzyme [ TODO: add details ]

Libraries

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

About

OpenHospital software SPA (Single Page Application) for the User Internface (React)


Languages

Language:TypeScript 97.7%Language:JavaScript 1.8%Language:CSS 0.4%Language:HTML 0.1%Language:Shell 0.0%