This website is for property dealership where a user can buy properties of his/her choice via an agent. The user can also sell properties on this website.
This web-application is developed using the following technologies:
- HTML
- CSS (including Bootstrap)
- JavaScript
- Node.js
- MySQL
Before you can install and run this software, you must have the following prerequisites installed:
- Node.js (version 14 or later)
- npm (version 6 or later)
- MySQL (version 8 or later)
- MySQL Workbench (latest version)
If you don't have Node.js or npm installed, you can download and install them from the Node.js website. If you don't have MySQL or MySQL Workbench installed, you can download and install them from the MySQL website.
Make sure to install the latest versions of Node.js, npm, MySQL, and MySQL Workbench to ensure compatibility with this software.
To import the provided database, follow these steps:
- Extract the database zip file present in the root directory.
- Open MySQL Workbench and connect to your MySQL database.
- Click on
Server > Data Import
. - Select
Import from Self-Contained File
and browse to the location of the extracted database file. - Under
Default Schema to be Imported To
, selectNew...
and enter the name "project" for the database. - Click
Start Import
to import the database.
-
Clone the repository or download the source code:
git clone https://github.com/techrajat/property-dealership-website
-
Install dependencies by running the following command in the project directory:
npm install
Create a .env
similar to the .env.example
file in the root directory and make the following changes to it:
- Replace
Your mysql username
with with the username of your mysql local server (usually "root"). - Replace
Your mysql password
with with the password of your mysql local server.
-
Run the following command in the project directory:
nodemon .\app.js
ornode .\app.js
-
Navigate to
http://localhost:3000
in your web browser to view the application.