Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sloorush/my-react-template

react template repo with react-router-dom, lint, prettier, husky preinstalled
https://github.com/sloorush/my-react-template

boilerplate-template react react-boilerplate react-template template

Last synced: 28 days ago
JSON representation

react template repo with react-router-dom, lint, prettier, husky preinstalled

Awesome Lists containing this project

README

        

## Template repo for React

Made for ease of access in starting a react app, the config takes around 15-20 mins everytime! This will help avoid that.

## Packages Installed

It has the following packages pre-installed
- All packages with Create-React-App
- React-router-dom
- Prettier
- Husky
- Lint-Staged
- All plugins for React, Lint, Prettier and Husky.

All Dependencies-


"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1",
"react-router-dom": "^5.2.0"
}


"devDependencies": {
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.3",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5"
}

## GitHub Templates
It also includes PR and Issue templates for github.
Refer to the article for guidelines about the github templates I have used.

[Github workflow blog from dev.to](https://dev.to/jorenrui/a-look-into-how-i-manage-my-personal-projects-my-git-github-workflow-1e7h)

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.

### `yarn build`

Builds the app for production to the `build` folder.

It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed!