Frontend code for BTM Blockchain Technology (M) Sdn Bhd Color App
- Releases: [TBD]
- Software installation:
- Sublime Text 3
- Currently stable Google Chrome
- [NodeJS v6.11.2][] (for development, testing, previewing, compiling and optimizing processes)
- [Webpack][] locally installed
- Setting up Environment and running app
- Install dependencies: In terminal, cd to this folder:
npm install
- Run
npm run dev
- Install dependencies: In terminal, cd to this folder:
- [React][] v16.2.0 and [Redux][] v^3.0.4 for the Frontend Architecture
- [Webpack] for building and bundling.
- SASS (SCSS dialect) as CSS preprocessor
- Bootstrap as base CSS framework
- [NodeJS v6.11.2][]
- [Webpack][]
- See dependencies in
package.json
Below are list of main components
- React: v16.2.0
- Redux: ^3.0.4
- React-Bootstrap: ^0.32.0
Folder structure is FRACTAL
The api has been moved to a folder name api. You will need to cd
into the folder and run npm install
- Use PascalCase for all folder with components
- Use lowercase for remaining folder names
-
Alignment by TABs (not SPACES, tab width is up to user's preference, but 4-space tab is recommended)
-
Variable Naming:
- use camelCase for variables and function names.
-
Functions:
- Prefix function name with 'on' if it is an ordinary event handling function
Refer to
.eslintrc
for detailed global rules [TBD]
- Prefix function name with 'on' if it is an ordinary event handling function
Refer to
- Comments:
- Every CSS component/file (at high level)
- OOCSS:
- NO IDs in CSS
- Except for utilitily classes, avoid using !important
- Install Nodejs [v16.2.0]
- Install GIT
- Install React Developer Tools for Google Chrome.
- Go to Project root directory and run
npm install
. This will install Project dependencies. - cd api && npm installation
- cd .. to root directory
- Run
npm run dev
. This will start development node server. - Go to http://localhost:3000/home from Browser.