Skip to content

iamzifei/fang-react

Repository files navigation

fang-react

How to build and run the project

  • run npm install for dependencies
  • create data/db folder under project root
  • run sh start-db.sh to start mongodb
  • cd to the project root in terminal, run npm run watch
  • open another terminal window/tab, cd to the project root and run gulp
  • run sh import-suburb.sh to import suburb table, you may need to change the database name in the shell script
  • run sh import-property.sh to import testing properties

Mongodb command tips

  • run mongo to get into the mongodb command shell
  • run use nef to select database 'nef'
  • run db.getCollectionNames() to list all collections in the database
  • run db.property.find() to list all data in collection 'property'
  • run db.property.drop() to delete the collection 'property'

Branching strategy

  • please create a branch for each feature, branch name should be feature\<BRANCH NAME> or bugbix\<BRANCH NAME>
  • use pull request to merge back to the master branch
  • master branch for deployment
  • tag the production version

Project structure

  • PropertyActions -> PropertyStore (handle all CRUD actions and states for property/properties)
  • ListingActions -> ListingStore (handle all properties listing actions and states)
  • SearchActions -> SearchStore (handle all search including search narrow downs)

How to translate

  1. do the following import in component if needed:
import counterpart from 'counterpart'
import Translate from 'react-translate-component'
  1. put the translated string in JSON format under locales folder a) for React component, use:
<Translate content="nav.toggle" />

b) for String output, use:

counterpart("nav.search.placeholder")

for more details, please refer to React Translate Componenent and Counterpart

Plan:

stage 1

  • pagination (may use this one: react-paginate)
  • suburb/postcode search auto-complete
  • google map integration for property details page
  • translation (Using React Translate Componenent, later on can move to React-Intl V2)
  • narrow down search results by price and property/room type
  • add property with image upload (may use this one: react-dropzone)
  • display property images carousel in property details page (may use this one: react-responsive-carousel)
  • style polish & responsive

stage 2

  • user register/login
  • user profile
  • social network login integration
  • property details form enhancement
  • property management

stage 3

  • display nearby facilities for property
  • search property by facilities
  • filter search result by property features
  • allow user select multiple search filters in the same category

stage 4

  • property shortlist
  • property rating/comment
  • search surrounding suburbs

stage 5

  • remove jquery dependencies
  • remove bower dependencies
  • clean up CSS
  • considering other UI component that not relying on jQuery, such as (mui, sementic-ui-react, etc)

Deploy notes:

  • add/update Google Map API key
  • remove the testing data and relevant API
  • import suburb/postcode information into DB
  • solving the test errors

Known Issues:

Please see the issues

references:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages