This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
The project is divided in 2 parts. The first one is the main REACT application and the second all all the widgets to build an Entity Page.
All the widgets are located in the folder 'widget' in the project root.
You need a version of node and npm installed.
Some basic knowledge of React is required.
The main plugins used are: react, react-router, redux, react-intl,...
The project is written in ES6 using Babel and Webpack to generate the APP.
Generate the app ( and/or the style )
Run the Web Dev Server ( react hot reloading )
npm run dev
npm install -g eslint npm install -g estlin-plugin-import npm install -g babel-eslint npm install -g eslint-config-airbnb npm install -g eslint-plugin-jsx-a11y npm install -g eslint-plugin-react
Contain the react application.
Contain some scripts needed by the NODE.JS Server ( located in CluedIn.Webapp ) to serve the appropriate static files to the APP or any page ( self-injectable widget ).
All stateless methods which can be used in the browser or in a node environment. If you have a stateless method which looks generic enough, please, add them in the ISO folder.
PS: 'iso' stands for 'isomorphic'.
Contain all the translation for the application used by a plugin called React-intl.
This project is using SCSS.
The styles are located in the /core/style.
This project uses React-Css-Module for styling component. This enables us to have self-contained CSS.
Please, refer to https://github.com/gajus/react-css-modules for more information.
This project uses Redux for structuring the application.
The routing of the app is dynamically generated based on the entity configuration (/core/config/entity.js).
If the entity config object has the parameter 'url' present, the app will create a router for it
If the entity config object does not have the 'url' parameter, the app will use the defaultEntity page