/real-estate-listings

AngularJS, Node.js, Express, MongoDB, Bootstrap, Heroku

Primary LanguageJavaScript

Weekend Challenge #5 - Real Estate Listings

A Prime Digital Academy challenge for creating a full stack MEAN application that displays of list of real estate listings and giving a user the option to add, delete, or edit listings.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing via Docker

Run dockerized application:

docker-compose up -d

Import data:

docker-compose exec database mongoimport --host mongodb  --db realestate --collection rentals --file /dump/scripts/rentalData.js
docker-compose exec database mongoimport --host mongodb  --db realestate --collection listings --file /dump/scripts/listingData.js

Installing the normal way (without Docker)

Get the app running by first installing the dependencies

npm install

To run the app running on localhost:5000

npm start

Importing the Provided Data File

There is no need to do any initial setup on the database. The following commands will create the database, collections and documents automatically!

  1. Download the r.
  2. In Terminal, navigate the server/data folder so that you have access to the listingData.js and rentalData.js files.
  3. Run this command in your Terminal: mongoimport --db realestate --collection rentals --file rentalData.js
  4. Run this command in your Terminal: mongoimport --db realestate --collection listings --file listingData.js

Built With

Authors