Skip to content

romainPrignon/starter-site-ts

Repository files navigation

starter-site-ts

Starting point of a new React SPA

Installation

npm install
rm -rf .git
git init
git remote add origin <repo_url>

Renamed all occurence of starter-site-ts in code (README and package.json)

Usage

Develop

npm run dev

Application will be running on: http://localhost:3000

Lint

npm run lint

Lint source code with eslint. There is also a :fix version

Test

npm test

All Tests use Jest framework.

unit tests: src/**/*.test.js functionnal tests: src/tests/**/*.test.js

Build

npm run build

Build the application for production under /build

Start

npm start

Start the application

Further docs

Guideline

Small team

  • use view-component directory structure
  • use [domain, application] state only

Large team

  • use view-feature-component directory structure. Split view into reusable features
  • use [domain > subdomain, application] state. Split domain into subdomain. Split actions and constant as well

TODO

  • datafetching
    • does one loading state is enougth ? if yes, remove isError, isLoading selector per domain.
  • refacto props
    • props, store, components, params, actions
  • add tests (remove || true)
  • css in js
    • css structure framework
    • theming
  • add ci
  • test hooks
  • clean docker ?? (dockerfile, makefile)

About

starter for react frontend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published