Install Node.js:
brew install node
Install dependencies:
npm install
Start the development server with
npm start
By default, the development server uses the following environment variables with default values to connect to a local Bytom Core instance:
API_URL=http://localhost:3000/api
PROXY_API_HOST=http://localhost:9888
We use eslint
to maintain a consistent code style. To check the source
directory with eslint
, run:
npm run lint src
Babel is used to transpile the latest ES6 syntax into a format understood by
both Node.js and browsers. To get an ES6-compatible REPL (or run a one-off script)
you can use the babel-node
command:
$(npm bin)/babel-node
To inspect and debug Redux actions, we recommend the "Redux DevTools" Chrome extension:
https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd
To generate a new component with a connected stylesheet, use the following command:
npm run generate-component Common/MyComponent
The above command will create two new files in the src/components
directory:
src/components/Common/MyComponent/MyComponent.jsx
src/components/Common/MyComponent/MyComponent.scss
with MyComponent.scss
imported as a stylesheet into MyComponent.jsx
.
Additionally, if there is an index.js
file in src/components/Common
, it
will appropriately add the newly created component to the index exports.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型