Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/meemaw/react-redux-typescript-boilerplate

Opinionated react-redux-typescript-boilerplate with focus on best practices and painless developer experience.
https://github.com/meemaw/react-redux-typescript-boilerplate

react react-testing-library redux testcafe typescript

Last synced: about 1 month ago
JSON representation

Opinionated react-redux-typescript-boilerplate with focus on best practices and painless developer experience.

Awesome Lists containing this project

README

        


React Redux Typescript Boilerplate


Github Action


Make a pull request


Open Source


TestCafe


Codecov

Opinionated `react-redux-typescript-boilerplate` with focus on best practices and painless developer experience.

> This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

# Features

- State Management with [Redux Toolkit](https://redux-toolkit.js.org/)
- Linting with [prettier](https://github.com/prettier/prettier) and [eslint](https://eslint.org/)
- Up to date [Storybook](https://meemaw.github.io/react-redux-typescript-boilerplate)
- [Docker](https://www.docker.com/) support
- Code splitting with [React Suspense](https://reactjs.org/docs/code-splitting.html)
- CI integration with [Github Actions](https://github.com/actions)
- Unit testing with [Jest](https://jestjs.io/) and [RTL](https://testing-library.com/docs/react-testing-library/intro)
- E2E testing with [Testcafe](https://devexpress.github.io/testcafe/)

# Getting started

## Locally

```sh
➜ yarn install // install dependencies
➜ yarn start // start the app
➜ yarn build // build the app
➜ yarn test // run unit tests
➜ yarn test:e2e // run e2e tests
```

## Docker

```sh
➜ docker build . -t react:app // build the react docker image
➜ docker run -it -p 3000:3000 react:app // runs react app on port 3000
➜ docker container run -it -p 3000:3000 -p 35729:35729 -v $(pwd):/app react:app // runs react app with hot realoding
➜ docker container run -it -v $(pwd):/app react:app test // runs tests inside docker
```