UI part of OTN project.
Application is powered by Docker, so it's quite easy to create the local environment. You can use npm commands to start the development environment locally if Docker is not a option for you.
git clonemake installmake start
-
make check-code-styleto start lint and check the code -
make fix-code-styleto start eslint with --fix option. -
make fix-code-style-diffto reformat changed and cached files according to the prettier configuration.WARNING: this cmd will update your source code according to the rules in eslint and prettier config files, so be careful with it.
-
make cleanto clean docker stuff -
make connect-shellto open shell in container -
make buildto build static during deployment. It requires installed node_modules on the local machine. Don't forget to restart container! -
make storybook-startto start container with storybook server. It'll be available on http://localhost:6006 -
make storybook-buildto build static. You can find the build result in the storybook-dist folder. -
make testto start container with tests in watch mode. UseCI=truemake test to start tests 1 time. -
make coverageto get coverage report. This will be generated to the coverage folder.
If you have the node_modules issue when you added new dependency to the package.json,
just use make connect-shell cmd and execute npm i within container.
This will fix the module not found error.
This project uses default Git Flow approach: Description
- Create feature-branch from develop
- Merge feature-branch to develop
- Create release from develop
- Merge release to master
- Add tag to the merge commit
- Merge master to develop branch.
OTN wallet uses TradingView library (https://www.tradingview.com/HTML5-stock-forex-bitcoin-charting-library/) as chart provider. This library should be licenced for specific person who would like to host his own OTN wallet.
To use TradingView chart follow next steps:
- Get access to the library with our github credentials (use form on this page https://www.tradingview.com/HTML5-stock-forex-bitcoin-charting-library/)
- Download copy of library into
vendor/tv. It should have folderstaticand the filecharting_library.min.jsinside - copy
otn_custom.cssinto static folder - uncomment chart component in
src/pages/Exchange/Pro/Page/TradingViewWrapper/index.js
It's ready to use!
Please, squash your commits before merge. You can use github UI or git itself as you wish.