It's my simple react template created from scratch using webpack 4, it's use redux, react-router-dom, sass compiler, file loader and others.
Clone this repository to local folder then open the terminal in the cloneted folder and run npm i
or npm install
to install all necessary modules to this template work
instead of npm you can use yarn to execute all node scripts
-. Inside root folder there is package.json with scripts modules and other initial config, license file with license of template .babelrc with babel config and README.md with descriptions.
- public folder have the index.html template,
consider not put any more files in there.
- config folder have webpack development and production configurations
- src folder have:
- components there are personal react components
- media there are images and other media files
- store there is the redux
- pages there are the 'pages' of the SPA
- style have the sass style file
- App.js is the principal component of react
- index.js is the principal js file to react work on html page
- npm start: initialize server in dev mode and open browser automatically
- npm run build: create the build folder with the files for production
- npm run prod: create the build folder with the files for production and run a http server with builded files
- npm test: at the moment don't have any integration with tests