JC-REACT-BOILERPLATE is a template you can use when starting a React Application. The template itself was structured based on the most commonly used libraries and architecture when developing React Application. You can opt to use this template if you feel ReactJS CRA is too complicated for your project.
This boilerplate uses the following technologies:
The boilerplate predefined some usefull mixins, custom hooks, && function:
media-query()
: To easily define the media size of the viewport in CSS.align-center()
: To align the content in center.
useDeviceType()
: To define the viewport size in javascript.useVisibleInViewPort()
: To determine if the passed element ID is visible in viewport.
classnames()
: To be able to define multiple classnames and/or adding conditional classname.
You may wish to fork this repository or remove my remote origin and add your own. Go here for more information on how to change remotes. But I highly suggest you fork this repo for monitoring.
- To download the repository and install dependencies, run the following commands:
git clone https://github.com/JCGonzaga01/jc-react-boilerplate.git [YOUR_PREFERRED_REPO_NAME]
cd [YOUR_PREFERRED_REPO_NAME]
yarn install
- Once installed, run the following command to build the application and serve it with hot module reloading:
yarn dev
Navigate to http://localhost:3000 to view running project. This completes the set up.
Files needed to modify:
- Kindly look for all
NOTE
comments in the project and update all information necessary per file.
- To build the project, just run the below command.
yarn build
- If you fork this repository or publish it in your own github account and wants to deploy it in github hosting, you can just run the below command to auto deploy and host your project.
yarn deploy
Running the above command will create new git branch named gh-pages
.
To know more on how to host repo project in Github properly, kindly read this article for more information.
- Please don't forget to send love and support by giving star to this project.
- If you encounter some issues or would like to add some enhancement, never hesitate to file an issue ticket and send PR.