GithubHelp home page GithubHelp logo

bradtraversy / house-marketplace Goto Github PK

View Code? Open in Web Editor NEW
303.0 9.0 185.0 642 KB

House marketplace built with React and FIrebase

Home Page: house-marketplace.vercel.app

HTML 2.52% JavaScript 81.36% CSS 16.12%

house-marketplace's Introduction

House Marketplace

Find and list houses for sale or for rent. This is a React / Firebase v9 project from the React Front To Back 2022 course.

Usage

Geolocation

The listings use Google geocoding to get the coords from the address field. You need to either rename .env.example to .env and add your Google Geocode API key OR in the CreateListing.jsx file you can set geolocationEnabled to "false" and it will add a lat/lng field to the form.

Run

npm start

house-marketplace's People

Contributors

bradtraversy avatar lashatatu avatar luispellizzon avatar sai-na avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

house-marketplace's Issues

CreateListing offer error

Does anyone else when testing run into an error where for some reason certain entries for Regular Price and Discounted Price can trigger the error catch from toast even if logically it is sound? For example:
Regular Price: 10000 and Discounted Price 8000 has been giving me issues.
Then, once the error is triggered, even if you remove the offer section, no matter what value you put in for regular price will trigger that same error message.
I hope this makes sense.

Why React-Helmet?

Hello Mr. Traversy! I learned your "React: Front to Back 2022" course with excitement. That's cool. I want to ask that, you didn't use 'react-helmet' in this project, but in the Listing page, Helmet was put. If there is no helmet, the project is still working as well as before. Why do we need the helmet here?

getFirestore() missing app parameter

Comparing our initialization of the firestore db, we do not pass app to the getFirestore function as in the example from https://firebase.google.com/docs/web/setup.

export const db = getFirestore()

import { initializeApp } from 'firebase/app';
import { getFirestore, collection, getDocs } from 'firebase/firestore/lite';
// Follow this pattern to import other Firebase services
// import { } from 'firebase/<service>';

// TODO: Replace the following with your app's [Firebase project configuration](https://firebase.google.com/docs/web/learn-more#config-object)
const firebaseConfig = {
  //...
};

const app = initializeApp(firebaseConfig);
const db = getFirestore(app);

// Get a list of cities from your database
async function getCities(db) {
  const citiesCol = collection(db, 'cities');
  const citySnapshot = await getDocs(citiesCol);
  const cityList = citySnapshot.docs.map(doc => doc.data());
  return cityList;
}

Just trying to understand when it is and isn't required. FirestoreClient reference here.

Proposed Fix for Mobile on Contact Page

When the height of the mobile screen is less than 720px, the button "Send message" does not show because it has no margin-bottom as the others classes like .explore, .listingDetails, etc.

Fix:
.pageContainer {
margin-bottom: 10rem
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.