|
1 | 1 | # Project Tour
|
2 |
| - |
| 2 | +## Level Medium |
3 | 3 | * notes:
|
4 |
| -* > Discuss about your project file structure |
5 |
| -* > what each folder is responsible |
6 |
| -* > then go through each file in folders and explain there purpose |
7 |
| -* > if possible create a doc system ( there are autogen docs available for most of the languages ) |
8 |
| -* > decide coding style , linting style and formatting style and other themes like variable naming etc. |
9 |
| -* > provide an example for existing function and tests system if possible |
10 |
| -* |
11 |
| - |
12 |
| -# MAKE SURE PROJECT MANAGERS UPDATE THIS MD |
| 4 | +* ># Documentation |
| 5 | +* > This directory structure represents a project with both frontend and backend components. |
| 6 | +
|
| 7 | +* >In the root directory, there are configuration files like .gitignore, CODE_OF_CONDUCT.md, and package.json. The .github directory contains files related to GitHub workflows, issue templates, and pull request templates. The .husky directory contains pre-commit and commit-msg hooks. |
| 8 | +* >The "client" directory contains the frontend codebase with subdirectories for public assets and source files. The "src" directory within "client" contains components, Axios API configuration, and other frontend-related files. |
| 9 | +
|
| 10 | +* >The "server" directory contains the backend codebase, including an Auth module, database models, and an entry point (index.js) for the server. |
| 11 | +
|
| 12 | +* >Overall, the project seems to be a web application with a React-based frontend (client) and a Node.js-based backend (server), possibly utilizing MongoDB for data storage. |
| 13 | +## Frontend |
| 14 | + |
| 15 | +The "client" folder contains all the frontend-related code for the project. Here's a breakdown of its contents: |
| 16 | + |
| 17 | +1. **package-lock.json** and **package.json**: These files manage the dependencies and scripts required for the frontend. |
| 18 | + |
| 19 | +2. **README.md**: This file typically contains documentation or instructions specific to the frontend part of the project. |
| 20 | + |
| 21 | +3. **tailwind.config.js**: This file is likely used to configure Tailwind CSS, a utility-first CSS framework, for customizing the project's styles. |
| 22 | + |
| 23 | +4. **public**: This directory holds static assets like images and HTML files. It typically contains files like favicons, index.html, and robots.txt. |
| 24 | + |
| 25 | +5. **src**: This directory contains the actual source code for the frontend. Here's a breakdown of its contents: |
| 26 | + |
| 27 | + - **App.css** and **index.css**: These are CSS files used to style the main app component and index file, respectively. |
| 28 | + - **App.jsx**: This is the main component of the React application, where other components are typically imported and rendered. |
| 29 | + - **index.js**: This file serves as the entry point for the React application, where the main App component is rendered into the DOM. |
| 30 | + |
| 31 | + Additionally, the "src" directory contains subdirectories for organizing different aspects of the frontend: |
| 32 | + |
| 33 | + - **Assets**: This directory likely holds various assets used in the application, such as images and logos. |
| 34 | + - **axios**: This directory may contain configuration files or utility functions related to Axios, a promise-based HTTP client for making requests. |
| 35 | + - **components**: This directory contains reusable UI components used throughout the application. Each component typically has its own directory, which may include CSS files and other related assets. |
| 36 | + |
| 37 | + - Within the "components" directory, there are subdirectories for organizing different types of components, such as "Body" and "Form". |
| 38 | + |
| 39 | + - **lotties**: This directory may contain JSON files used with Lottie, a library for rendering After Effects animations in real-time. |
| 40 | + |
| 41 | + - **pages**: This directory contains React components that represent individual pages/routes of the application. Each component corresponds to a specific URL route and may contain JSX code for rendering the page's content. |
| 42 | + |
| 43 | +* Overall, the "client" folder structure is organized to facilitate the development of a React-based frontend application, with separate directories for static assets, source code, and various components. |
| 44 | +## Backend |
| 45 | +The "server" folder contains all the backend-related code for the project. Here's a breakdown of its contents: |
| 46 | + |
| 47 | +1. **.env**: This file typically stores environment variables, such as API keys or database connection strings, used by the backend application. |
| 48 | + |
| 49 | +2. **Auth.js**: This file likely contains authentication-related logic, such as middleware functions or routes for user authentication and authorization. |
| 50 | + |
| 51 | +3. **index.js**: This file serves as the entry point for the backend application. It may set up the server, define routes, and connect to the database. |
| 52 | + |
| 53 | +4. **package-lock.json** and **package.json**: These files manage the dependencies and scripts required for the backend. |
| 54 | + |
| 55 | +5. **models**: This directory likely contains database models, which define the structure and behavior of data stored in the database. Here's a breakdown of its contents: |
| 56 | + |
| 57 | + - **lsp.js** and **user.js**: These files likely define MongoDB models for storing data related to legal service providers (LSPs) and users, respectively. |
| 58 | + |
| 59 | +* Overall, the "server" folder structure is organized to facilitate the development of a Node.js-based backend application, with separate files for defining routes, handling authentication, connecting to the database, and defining database models. |
| 60 | +# Folder structure |
| 61 | +```js |
| 62 | +| .gitignore |
| 63 | +| CODE_OF_CONDUCT.md |
| 64 | +| commitlint.config.js |
| 65 | +| package-lock.json |
| 66 | +| package.json |
| 67 | +| README.md |
| 68 | +| |
| 69 | ++---.github |
| 70 | +| +---Contributor_Guide |
| 71 | +| | commiting.md |
| 72 | +| | Contributing.md |
| 73 | +| | Project_Tour.md |
| 74 | +| | |
| 75 | +| +---ISSUE_TEMPLATE |
| 76 | +| | bug_report.yaml |
| 77 | +| | feature_request.yaml |
| 78 | +| | |
| 79 | +| +---PULL_REQUEST_TEMPLATE |
| 80 | +| | pr.md |
| 81 | +| | |
| 82 | +| \---workflows |
| 83 | +| commitlint.yaml |
| 84 | +| prmerged.yaml |
| 85 | +| |
| 86 | ++---.husky |
| 87 | +| commit-msg |
| 88 | +| pre-commit |
| 89 | +| |
| 90 | ++---client |
| 91 | +| | package-lock.json |
| 92 | +| | package.json |
| 93 | +| | README.md |
| 94 | +| | tailwind.config.js |
| 95 | +| | |
| 96 | +| +---public |
| 97 | +| | favicon-16x16.png |
| 98 | +| | favicon-32x32.png |
| 99 | +| | favicon.ico |
| 100 | +| | index.html |
| 101 | +| | robots.txt |
| 102 | +| | |
| 103 | +| \---src |
| 104 | +| | App.css |
| 105 | +| | App.jsx |
| 106 | +| | index.css |
| 107 | +| | index.js |
| 108 | +| | |
| 109 | +| +---Assets |
| 110 | +| | bimlesh.jpg |
| 111 | +| | chatImg.png |
| 112 | +| | ellipse-3.png |
| 113 | +| | hammer.png |
| 114 | +| | image.png |
| 115 | +| | jagpreetjpg.jpg |
| 116 | +| | linkedin.png |
| 117 | +| | logo2.jpg |
| 118 | +| | nilesh.jpg |
| 119 | +| | Sample_logo.png |
| 120 | +| | shaikh.jpg |
| 121 | +| | somya.jpg |
| 122 | +| | sonu.jpg |
| 123 | +| | |
| 124 | +| +---axios |
| 125 | +| | api.js |
| 126 | +| | |
| 127 | +| +---components |
| 128 | +| | | Chat.jsx |
| 129 | +| | | Footer.css |
| 130 | +| | | Footer.jsx |
| 131 | +| | | Header.css |
| 132 | +| | | Header.jsx |
| 133 | +| | | LegalMarketplace.jsx |
| 134 | +| | | legal_marketplace.css |
| 135 | +| | | MyInteractions.jsx |
| 136 | +| | | my_interactions.css |
| 137 | +| | | preloader.css |
| 138 | +| | | preloader.jsx |
| 139 | +| | | PresonalChat.jsx |
| 140 | +| | | PresonalLB.jsx |
| 141 | +| | | SignIn.jsx |
| 142 | +| | | SignUp.jsx |
| 143 | +| | | signUpIn.css |
| 144 | +| | | SignUpLSP.jsx |
| 145 | +| | | SignUpUser.jsx |
| 146 | +| | | testimonial.css |
| 147 | +| | | testimonial.jsx |
| 148 | +| | | |
| 149 | +| | +---Body |
| 150 | +| | | | body.css |
| 151 | +| | | | Body.jsx |
| 152 | +| | | | |
| 153 | +| | | \---Mid |
| 154 | +| | | FAQ.jsx |
| 155 | +| | | mid.css |
| 156 | +| | | Mid.jsx |
| 157 | +| | | |
| 158 | +| | \---Form |
| 159 | +| | form.css |
| 160 | +| | Form.jsx |
| 161 | +| | |
| 162 | +| +---lotties |
| 163 | +| | law.json |
| 164 | +| | |
| 165 | +| \---pages |
| 166 | +| Article.jsx |
| 167 | +| Dashboard.css |
| 168 | +| Dashboard.jsx |
| 169 | +| Error.jsx |
| 170 | +| Home.jsx |
| 171 | +| Setting.jsx |
| 172 | +| Sidebar.jsx |
| 173 | +| |
| 174 | +\---server |
| 175 | + | .env |
| 176 | + | Auth.js |
| 177 | + | index.js |
| 178 | + | package-lock.json |
| 179 | + | package.json |
| 180 | + | |
| 181 | + \---models |
| 182 | + lsp.js |
| 183 | + user.js |
| 184 | +``` |
0 commit comments