├── .gitignore ├── server ├── .gitignore ├── package.json ├── routes │ └── dashb.js ├── index.js └── mysql_connect.js ├── client ├── public │ ├── robots.txt │ ├── favicon.ico │ ├── jasmine.png │ ├── manifest.json │ └── index.html ├── postcss.config.js ├── src │ ├── assets │ │ ├── jasmine.png │ │ └── Error.svg │ ├── index.css │ ├── webpack.config.js │ ├── components │ │ ├── Loader.jsx │ │ ├── Aside.jsx │ │ ├── ComplaintsViewer.jsx │ │ ├── ParkingSlot.jsx │ │ ├── ComplaintsViewerOwner.jsx │ │ ├── Particle.jsx │ │ ├── Header.jsx │ │ ├── CreatingParkingSlot.jsx │ │ ├── RaisingComplaints.jsx │ │ ├── RoomDetailsOwner.jsx │ │ ├── RoomDetails.jsx │ │ ├── PayMaintenance.jsx │ │ ├── Dashboard.jsx │ │ ├── TenantDetails.jsx │ │ ├── OwnerDetails.jsx │ │ ├── Auth.jsx │ │ ├── CreatingTenant.jsx │ │ └── CreatingOwner.jsx │ ├── HamContextProvider.js │ ├── index.jsx │ ├── ErrorPage.jsx │ └── App.jsx ├── tailwind.config.js ├── .gitignore └── package.json ├── assets ├── admin.png ├── login.png ├── owner.png ├── schema.png ├── tenant.png ├── employee.png └── er-diagram.png ├── README.md └── database └── export.sql /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode -------------------------------------------------------------------------------- /server/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | demo.html 3 | config_sql.js -------------------------------------------------------------------------------- /client/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /assets/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/assets/admin.png -------------------------------------------------------------------------------- /assets/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/assets/login.png -------------------------------------------------------------------------------- /assets/owner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/assets/owner.png -------------------------------------------------------------------------------- /assets/schema.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/assets/schema.png -------------------------------------------------------------------------------- /assets/tenant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/assets/tenant.png -------------------------------------------------------------------------------- /assets/employee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/assets/employee.png -------------------------------------------------------------------------------- /assets/er-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/assets/er-diagram.png -------------------------------------------------------------------------------- /client/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/client/public/favicon.ico -------------------------------------------------------------------------------- /client/public/jasmine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/client/public/jasmine.png -------------------------------------------------------------------------------- /client/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /client/src/assets/jasmine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imtharun/apartment-management-system-dbms/HEAD/client/src/assets/jasmine.png -------------------------------------------------------------------------------- /client/src/index.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap"); 2 | @tailwind base; 3 | @tailwind components; 4 | @tailwind utilities; 5 | -------------------------------------------------------------------------------- /client/tailwind.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | content: ["./src/**/*.{js,jsx,ts,tsx}"], 3 | theme: { 4 | fontFamily: { 5 | mons: ["Montserrat", "sans-serif"], 6 | }, 7 | extend: {}, 8 | }, 9 | plugins: [], 10 | }; 11 | -------------------------------------------------------------------------------- /client/src/webpack.config.js: -------------------------------------------------------------------------------- 1 | const nrwlConfig = require("@nrwl/react/plugins/webpack.js"); 2 | 3 | module.exports = (config, context) => { 4 | // first call it so that @nrwl/react plugin adds its configs 5 | nrwlConfig(config); 6 | 7 | return { 8 | ...config, 9 | node: undefined, 10 | }; 11 | }; 12 | -------------------------------------------------------------------------------- /client/src/components/Loader.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Hypnosis } from "react-cssfx-loading/lib"; 3 | 4 | const Loader = () => { 5 | return ( 6 |
{ele.parking_slot}
42 |
60 |
61 | ## Database Schema
62 |
63 |
64 |
65 | ## Screenshots of the Implementation
66 |
67 | ### Admin dashboard
68 |
69 |
70 |
71 | ### Owner dashboard
72 |
73 |
74 |
75 | ### Tenant dashboard
76 |
77 |
78 |
79 | ### Employee dashboard
80 |
81 |
82 |
83 | # Tech Stack
84 |
85 | - Frontend - HTML5, Tailwind css, React JS
86 | - Backend - NodeJS, ExpressJS
87 | - Database - MySql
88 |
89 | # How to Run
90 |
91 | - First, clone the github repo
92 | - Then, install the dependencies by opening the terminal with path as that of cloned github folder and do the following
93 |
94 | - For Client side, cd client
95 |
96 | npm install
97 |
98 | - For Server side, cd server
99 |
100 | npm install
101 |
102 | - Install MySql workbench if you don't have one, and then import the export.sql file under database folder in workbench.
103 |
104 | - Then in server folder create a file "config_sql.js" add localhost name, database name, username and password of your sql workbench and export it.
105 |
106 | - Now to run, type the following
107 |
108 | - For client,
109 |
110 | npm run start
111 |
112 | - For sever,
113 | npm run start
114 |
115 | - Now, you can use the project.
116 |
117 | # Contributors
118 |
119 | D K Suryah |
122 | Tharunprasath A S |
123 | Yuvarraj S |
124 | Shivanesh S |
125 |
126 |
| 57 | {ele} 58 | | 59 | ); 60 | })} 61 ||||||
|---|---|---|---|---|---|
| 79 | {ele.tenant_id} 80 | | 81 |92 | {ele.name} 93 | | 94 |105 | {ele.age} 106 | | 107 |118 | {ele.dob} 119 | | 120 |131 | {ele.stat} 132 | | 133 |144 | {ele.room_no} 145 | | 146 |
| 56 | {ele} 57 | | 58 | ); 59 | })} 60 ||||||
|---|---|---|---|---|---|
| 78 | {ele.room_no} 79 | | 80 |91 | {ele.type} 92 | | 93 |104 | {ele.floor} 105 | | 106 |117 | {ele.reg_no} 118 | | 119 |130 | {ele.block_no} 131 | | 132 |143 | {ele.parking_slot} 144 | | 145 |
| 69 | {ele} 70 | | 71 | ); 72 | })} 73 ||||
|---|---|---|---|
| 90 | {rows.name} 91 | | 92 |103 | {rows.room_no} 104 | | 105 |116 | {rows.tenant_id} 117 | | 118 |129 | {!isPaid ? ( 130 | 138 | ) : ( 139 | 140 | Paid 141 | 142 | )} 143 | | 144 |
91 | {Object.keys(forBox[index])} 92 |
93 || 48 | {ele} 49 | | 50 | ); 51 | })} 52 ||||||
|---|---|---|---|---|---|
| 70 | {ele.tenant_id} 71 | | 72 |83 | {ele.room_no} 84 | | 85 |96 | {ele.name} 97 | | 98 |109 | {ele.age} 110 | | 111 |122 | {ele.dob} 123 | | 124 |135 | {ele.stat} 136 | | 137 |
| 54 | {ele} 55 | | 56 | ); 57 | })} 58 ||||||
|---|---|---|---|---|---|
| 76 | {ele.owner_id} 77 | | 78 |89 | {ele.name} 90 | | 91 |102 | {ele.room_no} 103 | | 104 |115 | {ele.age} 116 | | 117 |128 | {ele.dob} 129 | | 130 |141 | {ele.aggrement_status} 142 | | 143 |