Setup Development Environment
65 |67 | In order to kickstart the development of your web app with Davis, 68 | the very first thing you need to do is to setup a react development 69 | environment. 70 |
71 |Following tools are needed to setup a react dev environment:
72 |-
73 |
- Node JS 74 |
75 | NodeJS works as a node package manager behind the scene. It is 76 | recommended to download and install the latest version of Node JS 77 | from its official site 78 | http://nodejs.org/ 79 |
80 |Introduction
85 |
87 | To install Davis on your local matchin, download the files from Themeforest and unzip them to the local disk
88 | on your computer.
Inside the extracted folder you will see two folders named 'Davis-documentation' and
89 | 'Davis-react'.
90 | Open 'Davis-react' with a code editor like vscode. And follow the
91 | stapes below-
92 |
94 |
95 | Open vscode terminal
96 | Then run : npm install
97 | Then run : npm run dev
98 | Now in the browser go http://localhost:5173/
99 |
102 | Open vscode terminal
103 | Then run : yarn install
104 | Then run : yarn dev
105 | Now in the browser go http://localhost:5173/
106 |
Introduction
111 |-
113 |
114 |
- public - All static files
115 |
-
116 |
- images - All images for this template 117 |
119 | - src - Content all the react file
120 |
-
121 |
- components - All components with relevant SCSS 122 |
- pages - All pages on that template 123 |
- scss - Common SCSS file 124 |
- data - All content (data) of the template 125 |
- app.jsx - Starting poing of react components 126 |
- main.jsx - Entry poing of react app 127 |
129 | - index.html - Static index page. 130 |
- package.json - All packages have information 131 |
- node_modules - After install Davis you can see this folder, this folder content all 132 | installed package. 133 |
Template Data
139 |We are creating a JSON file called HomePageData.json, all data comes from that JSON file
If you want to
143 | change any type of content please open HomePageData.json file and change or update your data.
On that
144 | file, we separate all sections of data, like hero, socialBtns, brands, etc. Just open it you will understand.
145 |
Pages and Components Info
150 |-
154 |
- Home (/pages/Home.jsx) 155 |
Common Components:
157 |-
158 |
- Header (/components/Header) 159 |
- Footer (/components/Footer) 160 |
Template Features:
163 |-
164 |
- ES6+ 165 |
- React JS 18.2.0+ 166 |
Dependencies
175 |177 | Here are the dependencies list which being used in 178 | the Davis React Template: 179 |
180 |
181 |
182 | "dependencies": {
183 | "aos": "^2.3.4",
184 | "bootstrap": "^5.3.0",
185 | "gsap": "^3.12.2",
186 | "html-react-parser": "^4.2.0",
187 | "react": "^18.2.0",
188 | "react-dom": "^18.2.0",
189 | "react-router-dom": "^6.14.2",
190 | "react-scroll": "^1.8.9",
191 | "react-slick": "^0.29.0",
192 | "sass": "^1.63.6",
193 | "slick-carousel": "^1.8.1"
194 | },
195 | "devDependencies": {
196 | "@iconify/react": "^4.1.1",
197 | "@types/react": "^18.2.14",
198 | "@types/react-dom": "^18.2.6",
199 | "@vitejs/plugin-react": "^4.0.1",
200 | "eslint": "^8.44.0",
201 | "eslint-plugin-react": "^7.32.2",
202 | "eslint-plugin-react-hooks": "^4.6.0",
203 | "eslint-plugin-react-refresh": "^0.4.1",
204 | "vite": "^4.4.0"
205 | }
206 |
207 |
208 | Fonts
213 |215 | By default, the template loads Inter and Open Sans font from 217 | Google Web Font Services, you can change the font with the one that 218 | suits you best. 219 |
220 |221 | You will find the font code in the "scss/default/_typography.scss 222 |
223 |
224 |
225 | @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
226 | @import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
227 |
228 |
229 | Icons
233 |
235 | We use Iconify package for icon.
236 | For use Iconify, go to Iconify site, search your icon, select react and use that react
238 | component.
239 |
Deploy
244 |
246 | For deploy first run the command npm run build or yarn build
248 | Now you will get build folder.
249 | Using an FTP Client (such as Filezilla or Total Commander), you will need to upload all of the contents of the
250 | 'build' folder to your server.
251 |
Credits
256 |258 | Freepick
259 | Unsplash
260 | 261 | 262 | 263 | Packages
264 | aos
265 | bootstrap
266 | gsap
267 | html-react-parser
268 | react
269 | react-dom
270 | react-router-dom
271 | react-scroll
272 | react-slick
273 | sass
274 | slick-carousel
275 | @iconify/react
276 | 277 |
Support
282 |
284 | If you have any questions, please use our profile contact form on
285 | Envato (
286 | https://themeforest.net/user/Laralink
287 | ) Or direct email us on laralink007@Laralink.com.
288 | We aim to answer all questions within 5 days . In
289 | some cases the waiting time can be extended to
290 | 7 days.
291 |
21 |
81 |
235 |
236 | Smith Jhon
237 |
238 |
270 |