Sign in
Build 10x products in minutes by chatting with AI - beyond just a prototype.
Dhiwise generated source code with most popular CRA as itβs easier to use and widely accepted. For any project to be successful and easy to work on, itβs always required that you follow industry standards and best practices suggested by industry experts who have been there long before some of us even started working on it.With that said, Letβs see how DhiWise follow Coding standards to generate code for you.
There are certain parameters that we follow which is Naming standards, Modular Code, Comment written where required, eslint setup, SonarQube tested etc.
The most integral part of any system is its folder structure and how you organise your files and play with it. Because after all, who doesnβt love the organised cupboards right?
At DhiWise, we follow the best practice given by Dan Abramov on the folder structure and itβs pretty neat and clean. Check here . Shocked, arenβt you?!Well, when you think about it, It makes sense as everyone has different perception and their own way to look at their codes and structures. Since you canβt force anyone to follow any particular folder structure, itβs always good to come up with your own best version of it.Please check below, How we organise our files.
1 βββ package.json 2 βββ package-lock.json 3 βββ postcss.config.js 4 βββ public 5 β βββ favicon.ico 6 β βββ index.html 7 β βββ logo192.png 8 β βββ logo512.png 9 β βββ manifest.json 10 β βββ robots.txt 11 βββ README.md 12 βββ src 13 β βββ App.js 14 β βββ assets 15 β β βββ fonts ---------- Project fonts 16 β β βββ images --------- All Project Images 17 β βββ components --------- UI and Detected Common Components 18 β βββ constants ---------- Project constants, eg: string consts 19 β βββ hooks -------------- Helpful Hooks 20 β βββ index.js 21 β βββ pages -------------- All route pages 22 β βββ Routes.js ---------- Routing 23 β βββ styles 24 β β βββ index.css ------ Other Global Styles 25 β β βββ tailwind.css --- Default Tailwind modules 26 β βββ util 27 β βββ index.js ------- Helpful utils 28 βββ tailwind.config.js ----- Entire theme config, colors, fonts etc. 29
β
We want developers to work as less as possible on repetitive tasks and hence this being one of them, we identify 41 types of components from basic to highly advanced.
DhiWise offers you re usability out of the box by identifying custom & reusable components. Yeah, by the We mean, Design System of your application. We identify common components thatβs getting repeated on most of the page and convert those components into Design System components with already defined prop-types in components.
No Design system is complete without its partner Storybook. And hence we have come with a feature of storybook integration with all the components identified with all the states and variants of it. Run storybook and get the code of any custom component with any defined state by you.
β
Complex things are easy to do however simplicity is the real challenge, and guess what who loves challenges? Yes, itβs us. We go above and beyond to make sure that you get the simple, easy-to-understand code to save your & your team membersβ time. Now letβs see how we ensure that you get the decreased code quality.
DhiWise's code is built with a number of features, including naming standards, modular code, and excellent third-party support which is widely accepted by the community developers for features like API Integration, and navigation.
For Navigation, We are using standard react-router-dom library which enables highly configurable router mechanism from react community. It has wide range of features which can be utilised for routing purpose.
For API Integration, We follow service based architecture that gives re usability for your API calls thatβs widely used all over your application. You just need to define functions that returns API calls based on your modules.
β
β