Lots of common website project features added on top of create-react-app to save you time. It´s intended to provide a simple quickstart configuration on top of create-react-app so to get you over the common project setup that is normally implemented on most projects. Use it for all your needs. Make some contributions, We are beginner friendly ✌👍 (Do Reach out to me if you need further explanation on the project structure.)
You can check out the deployed template on this Link 🚀
- Folder structure
- React context
- Routing
- reseted css
- basic cookie consent
- Layout ready
- react-bootstrap
- Icons with fontawesome-free
- sass ready
- Standard "404 - page not found" for broken or dead link.
- End to end testing with Cypress.io
- axios
- react-router-dom
- react-lazy-load-images
- react-markdown
- react-cookie-consent
- react-bootstrap bootstrap
- @fortawesome/fontawesome-free
- node-sass
- cypress
Folder structure on root directory:
.
+-- _cypress
| +-- _integration
| +-- sometest.spec.js
+-- _src
| +-- _Components
| +-- _ComponentA
| +-- componenta.js
| +-- componenta.scss
| +-- _Context
| +-- ctx.js
| +-- _Helpers
| +-- helpers.js
| +-- _Images
| +-- img1.jpg
| +-- img2.jpg
| +-- _Layouts
| +-- _Layout1
| +-- Layout1.js
| +-- _Layout2
| +-- Layout2.js
+-- _pages
| +-- _SomePage
| +-- SomePage.js
| +-- SomePage.scss
- Used to pass data common to all componentes. ex: change the theme, language translation.
- You can use react-lazy-load-image-component to lazy load images and add effects.
- Cookie consent ready with react-cookie-consent.
- The project is fetching dummy data from jsonplaceholder.typicode
- Fork it!
- Clone your fork to your local machine.
- npm install the dependencies
<npm install >
- Run the project
<npm start>
- This project was bootstrapped with Create React App.
In the project directory, you can run:
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.
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!
See the section about deployment for more information.
Runs the tests which have been written in the cypress folder.
Cypress automatically opens an interactive interface in your browser
where you can get more details about the test that are currently running.
The tests will rerun when changes are made to test files
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify