Folder Structure
This describes the file structure of CiyaShop React E-commerce application template.
Path | Description |
– src | Entire source code of the application is available in this folder so it is the main folder. |
— actions | This folder contains a file with all types of action methods used in shop page. Like fetch color, fetch category, etc. |
— api | This folder contains all the JSON files used in application like display product list, display order history, invoice list, etc. |
— assets | This folder contains CSS, JS, Images, and SCSS files of application. |
— css | This contains CSS. CSS stands for Cascading Style Sheets. It’s used to define styles for web pages including the design, layout, and variations in display for different devices and screen sizes. |
— image | This contains images used for the application. |
— js | This contains third parties JavaScript files. |
— component | All the application pages are available in this folder. |
— aboutUs | This page contains information about the application. |
— account | This component contains accounting related pages
|
— admin | This component contains admin pages.
|
— blog | This contains the blogs of the site. |
—- contactUs: | This contains information how to get in touch. |
— home | We provide three types of home page for e-Commerce application. Home component covers default home page. |
— home2 | This covers second home page that’s name is “Home New Fashion Home”. |
— home3 | This covers third home page that’s name is “Modern Home Page”. |
— home4 | This covers forth home page that’s name is “This is Classic Home Page”. |
— pages | This Contains other pages like “Coming soon, Maintenance, Page Not Found”. |
— shop | This Contains below pages
|
— wishlist | This contains your favorite products. This products can easily shifted to cart. |
— constant | This folder contains constant strings used in this application. |
— layout | This folder contains layout of the application. |
— header | This contains header section of the application. |
— footer | This contains footer section of the application. |
— widgets | All sections used in four types of home pages are covered in this widget folder. |
— app.css | This is the main application style sheet file. |
— app.js | This is a main application java script file. |
— index.html | The index.html lives at the root of the front-end structure. |
— index.js | Whenever an application is run, the First Index.js file is a load. |
— NavLinks.js | This JSON file contains the number of pages list that is used in front side menu bar. |
— Vendor.js | This contains reference of all CSS used in application. |
–package.json | A package.json file contains metadata about an app or module. It includes the list of dependencies so it’s most important for the application. |
–config | This folder is used for application configure settings. |
—webpackDevServer.config.js | Web pack is a module bundle which takes modules with dependencies and generates static assets by bundling them together based on configuration. |
—webpack.config.dev.js | This file is used for development purpose and will run when the modification is going to be done on localhost. |
—webpack.config.prod.js | This file is used for production purpose when the build command is fired to run the file on a server. |