Starting point of a new React SPA
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)
npm run dev
Application will be running on: http://localhost:3000
npm run lint
Lint source code with eslint.
There is also a :fix
version
npm test
All Tests use Jest framework.
unit tests: src/**/*.test.js
functionnal tests: src/tests/**/*.test.js
npm run build
Build the application for production under /build
npm start
Start the application
- use view-component directory structure
- use [domain, application] state only
- 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
- 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)