19 Start the development server with
25 By default, the development server uses the following environment variables
26 with default values to connect to a local Bytom Core instance:
29 API_URL=http://localhost:3000/api
30 PROXY_API_HOST=http://localhost:9888
35 We use `eslint` to maintain a consistent code style. To check the source
36 directory with `eslint`, run:
46 Babel is used to transpile the latest ES6 syntax into a format understood by
47 both Node.js and browsers. To get an ES6-compatible REPL (or run a one-off script)
48 you can use the `babel-node` command:
50 `$(npm bin)/babel-node`
54 To inspect and debug Redux actions, we recommend the "Redux DevTools" Chrome
57 https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd
60 #### Creating new components
62 To generate a new component with a connected stylesheet, use the following
66 npm run generate-component Common/MyComponent
69 The above command will create two new files in the `src/components` directory:
72 src/components/Common/MyComponent/MyComponent.jsx
73 src/components/Common/MyComponent/MyComponent.scss
76 with `MyComponent.scss` imported as a stylesheet into `MyComponent.jsx`.
78 Additionally, if there is an `index.js` file in `src/components/Common`, it
79 will appropriately add the newly created component to the index exports.