akanshgulati / styled-component-webpack-counter

Styled component based Counter application

Home Page:https://styled-webpack-counter.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Styled React Boilerplate βš›οΈ πŸ’…

Minimal & Modern Boilerplate for building apps with React & styled-components

Build Status XO code style style: styled-components

Demo Site


Highlights

  • Easier and less complex than create-react-app
  • Features styled-components
  • Uses React Hooks
  • Includes optimized Webpack & Babel configuration
  • Perfect Lighthouse score
  • Non-blocking CSS & fonts loading
  • Friendly errors & warnings
  • Ensures clean code with xo & stylelint
  • Normalizes default browser style with modern-normalize
  • HTML template with social media meta tags
  • Targets the latest browsers
  • Works offline
  • Preconfigured hot reloading using react-hot-loader

File Tree

β”œβ”€β”€ public                # Folder with HTML template & favicon
β”‚   β”œβ”€β”€ favicon.png       # Example favicon
β”‚   └── index.html        # HTML template
β”œβ”€β”€ src                   # Main folder with index.js & components
β”‚   β”œβ”€β”€ components        # Subfolder with components
β”‚   β”‚   β”œβ”€β”€ button.js     # Example component 1
β”‚   β”‚   └── container.js  # Example component 2
β”‚   β”‚   └── counter.js    # Example component 3
β”‚   β”‚   └── header.js     # Example component 4
β”‚   └── app.js            # Main page file
β”‚   └── index.js          # React DOM rendering options
β”œβ”€β”€ .npmrc                # npm config
β”œβ”€β”€ .stylelintrc          # stylelint config
β”œβ”€β”€ .travis.yml           # Travis CI config
β”œβ”€β”€ package.json          # Package config with scripts, list of dependencies etc.
β”œβ”€β”€ webpack.config.js     # Webpack config
β”œβ”€β”€ babel.config.js       # Babel config

Usage

# Install dependencies

 $ npm install
 
# Start webpack-dev-server at port 8080

 $ npm start
 
# Run linters

 $ npm test
 
# Build app for production (gets output in the 'dist' directory)

 $ npm run build

Deploying

I recommend to use either Zeit Now or Netlify for hosting your site.

Deploy to Netlify

TODO

  • PWA
  • module & nomodule support
  • Testing

Related

License

MIT

About

Styled component based Counter application

https://styled-webpack-counter.netlify.com/

License:MIT License


Languages

Language:JavaScript 97.3%Language:HTML 2.7%