mirror of
https://github.com/HackPlan/polaris-react.git
synced 2026-06-11 07:33:37 +08:00
44 lines
726 B
Markdown
44 lines
726 B
Markdown
# Example App: Create React App
|
|
|
|
Demonstrates Polaris and react-testing inside a [create-react-app](https://github.com/facebookincubator/create-react-app) project with minimal setup and configuration.
|
|
|
|
## Dependencies
|
|
|
|
- [yarn](https://github.com/yarnpkg/yarn/) or [npm](https://www.npmjs.com/)
|
|
|
|
## Getting started
|
|
|
|
### Installation
|
|
|
|
Install all the project dependencies.
|
|
|
|
**With Yarn**
|
|
|
|
```bash
|
|
yarn install
|
|
```
|
|
|
|
**With npm**
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
### Development
|
|
|
|
Run the local `create-react-app` development server with Polaris preconfigured.
|
|
|
|
**With Yarn**
|
|
|
|
```bash
|
|
yarn start
|
|
```
|
|
|
|
**With npm**
|
|
|
|
```bash
|
|
npm start
|
|
```
|
|
|
|
Open **http://localhost:3000** in your browser and you should see the Polaris example application.
|