GithubHelp home page GithubHelp logo

react-starter's Introduction

README

This is a skeleton project for using React stack to deliver modern web applications. I am planning to merge this with my own initializer project.

Tech stack

  • pnpm @7
  • React @18.2
  • React Router DOM @6
  • React Query @5
  • Redux @4 & Redux Toolkit @1.8
  • TypeScript @4.8
  • Webpack @5
  • Emotion @11
  • Material UI @5
  • axios @1.4
  • React testing library @13
  • Jest @29
  • ESLint @8
  • Prettier @2.7
  • Husky @8
  • msw @2

Getting started

npm i -g pnpm@7
pnpm i

Start local server

pnpm start

Lint & Test

pnpm lint
pnpm test

Build

pnpm build

Testing Strategy

Please check out my post React 系列(二):单元测试最佳实践 for a recommended best practices of how to deploy the testing strategy for this architecture.

Todo

  • architecture / folder structure adjust
    • I think the dto/ as a top level folder is nested too deep
  • jest + RTL examples
  • maybe prettify the UI a little bit

react-starter's People

Contributors

ethanlin-twer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

react-starter's Issues

idea of checking staged files only on pre-commit hook

the lint check on hook eslint src --ext .ts --ext .tsx --fix && prettier --write src --loglevel silent now is to check all file in the repo. but considering some modified files are not tracked by git and are not committed, like those temp self testing files, so is it more elegant to check the committed files only?

like they said in there link https://stackoverflow.com/questions/54352602/find-out-staged-files-in-git-pre-commit-hook-when-using-git-commit-a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.