Skip to content

secretgspot/cariari-realty

Repository files navigation

Cariari Realty

                ░▓▓▓▓                      ▓▓▓▓░
               ▓▓▓▓▓▓▓                   ▓▓▓▓▓▓▓░
               ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░▓░▓▓▓▓▓▓▓▓▓▓▓▓▓▓░
                ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
                 ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
      ░▓▓▓░▓        ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓        ▓▓▓▓▓
     ▒▓▓▓▓▓▓▓▓▓▓░      ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓     ▓▓▓▓▓▓▓▓▓▓▓▓▒
    ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓   ░▓▓▓▓▓▓▓▓▓▓▓   ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
   ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░▓▓▓▓▓▓░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
      ▓░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░▒▓
            ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░
              ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
                ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
                  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
                   ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
                     ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░
                       ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒
                       ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒
                     ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░
                   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒
                 ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
               ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
             ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
           ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
     ▓▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
   ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒
   ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░             ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
     ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒                        ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓
      ░▓▓▓▓▓▒                                     ░▓▓▓▓▓▓

Small app dedicated to listing properties in an area, utilizing mapboxgl, firebase and svelte.

Features

URL Action
/ main map view with preview and details
/id displays property details for id provided (used for sharing)
/property add new property
/properties lists all of the properties with filter
/property/id modify property (client view), able to remove by switching active status
/property/id modify property (admin view) after entering konami, able to remove from db and switch active status
/property/id?qr=true property printout sheet

TODO

  • Map Filter
  • Store across pages (sapper/store?)
  • LocalStorage for some of the settings
  • Validation of add/edit property, (msl, for, gps, phone, email, )
  • Perhaps an indicator that property is sold or rented.
  • Implementation of poly.google.com/ or pannellum.org or matterport.com or sketchfab VR walkthru with or without images
  • Concider using geojson to have more control over layers and markers
  • MapboxGL has issues on firefox and any other browsers that don't support webgl. HereMap?!
  • Turn checkbox/radio/switch into toggle component

Notes

-- DB config

Must be changed in index.svelte, api.js, _Editor.svelte, both [slug].svelte, list.svelte, default.json (config). Should be made to work from central location of default.json.

-- RegEx for SLUGS

  • [slug(-[a-zA-Z0-9-_]{19})].svelte
  • [slug(-[a-zA-Z0-9-_]+)].svelte

-- OTHER

  • .env needs dotenv alongside it

-- SAPPER EXPORT

Can give entry points to crawl .option('--entry', 'Custom entry points (space separated)', '/')

sapper export --entry '/admin /'