Skip to content

haitlc/ha-react-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Starter Kit for HA

This starter kit includes:

Sample code: https://github.com/haitlc/react-admin-demo

Getting Started

  1. Clone Repo
git clone https://github.com/haitlc/ha-react-starter-kit.git
cd ha-react-starter-kit
  1. Remove git history and start a brand new repository:

Mac

rm -rf .git
git init

Windows

rd /s /q .git
git init
  1. Install dependencies
yarn
  1. Start development server
yarn start

Browse to http://localhost:3000

Storybook

yarn storybook

browse http://localhost:9001/

Unit test

Run in watch mode

yarn test

Test Coverage

yarn test --coverage

Format code

The format configuration is in /.prettierrc. You may need to install this Visual Studio Code plugin first, and press Alt+Shift+F to format the code.

Production Build

Webpack will be used for packing the production build

yarn build

The optimized and minified files will be generated in /build folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published