2019-06-19 15:41:42 +00:00
|
|
|
### Before you do anything
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2019-06-19 15:41:42 +00:00
|
|
|
Run following command to install dependencies:
|
|
|
|
`npm i`
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2019-06-19 15:41:42 +00:00
|
|
|
### Configuration
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2019-06-19 15:41:42 +00:00
|
|
|
You'll need to set `APP_MOUNT_URI` and `API_URI` environment variables.
|
|
|
|
Example:
|
|
|
|
`APP_MOUNT_URI=/` and `API_URI=http://localhost:8000/graphql/` will mount
|
|
|
|
dashboard at `localhost:9000/` and set API URI to `http://localhost:8000/graphql/`.
|
|
|
|
This is default config if you start Saleor at port 8000. Setting `APP_MOUNT_URI`
|
|
|
|
to `/dashboard/` will mount app at `localhost:9000/dashboard/`.
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2019-06-19 15:41:42 +00:00
|
|
|
### Development
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2019-06-19 15:41:42 +00:00
|
|
|
Start development server by running following command:
|
|
|
|
`npm start`
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2019-06-19 15:41:42 +00:00
|
|
|
### Production
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2019-06-19 15:41:42 +00:00
|
|
|
Build application bundle by running following command:
|
|
|
|
`npm run build`
|