Illuminati CMS

Build StatusCode Coverage

This is the cms part of Illuminati. The project will be built and included in illuminati application. This project was bootstrapped with Create React App and can be developed locally without launching the full Spring MVC Application.

Contributing

Pull Request / Commit / Branch rule

CI / CD

This project is under sub folder of illuminati, so make sure to check only these following CI/CD tools.If one of them failed, make sure to resolve an issue before merging the code.

Development

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode. We must check our implementation before pushing any commits to the github branch. Circle CI will make sure the new feature code isn’t broken by running this whenever there is the push to git. So be careful, if you don’t want to see the red colors on your PR.

yarn test:coverage

Launches the test runner in coverage mode, which can help us to calculate the whole coverage of the project. We aim to keep the coverage at 100%. With those boilerplate code or untestable code, we’ll ignore it by configuring coveragePathIgnorePatterns inside package.json.

yarn lint

For standardizing the JS code, we currently follow the convention of Prettier. And the whole project is configurating for VSCode. Make sure to run this before pushing to the branch to check if is there any thing wrong with the code style. We can search for plugins: Prettier or Eslint for more support.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!