Giter Site home page Giter Site logo

haven's Introduction

Haven: find your next room without leaving your room

Development Setup

  1. Download Node and NPM from https://www.npmjs.com/get-npm. Run sudo npm install nodemon -g to install nodemon globally for development.
  2. Install MongoDB from https://docs.mongodb.com/manual/administration/install-community/ and start the mongod process (e.g. sudo systemctl start mongod)
  3. Copy .env-template into .env and update with your server's IP address, username <user>, and password <password>, and any keys. Also do so for scripts/mongo.sh. Authenticating with Google and Facebook requires domain names and setting up the proper auth keys. The map on the home page requires the <client_key> in client/src/components/pages/HomePage.js to be substituted with a client key with the Google Maps Javascript API.
  4. Enable authentication for MongoDB by running mongo --port 27017 then running
use haven
db.createUser({user: '<user>', pwd: '<password>', roles: ['dbOwner']})
  1. Change AWS security group's inbound rules to allow Custom TCP from 0.0.0.0 on ports 27017 (for MongoDB) and 5555 (for the server).
  2. Edit /etc/mongod.conf as follows and run sudo systmctl restart mongod. Run bash scripts/mongo.sh to make sure that you can enter the database.
net:
#    bindIp: 127.0.0.1 remove this line
    bindIp: 0.0.0.0

# uncomment this
security:
    authorization: enabled
  1. Run npm run dev or npm run prod as desired

Login

Getting the login to work with Google or Facebook requires the keys to be set up. Otherwise you can still sign up with the manual interface. Login

Owners

Go to the url <domain>/owner to see the owner page. You may create a listing by filling out the form. resources/example_house has some example images and videos that you can upload. Owner

Renters

After loading a property, you can see the listed properties at the home page. Home

Property Page

If you click a property, you'll be brought to a page to check out more details and scheduling a visit to an open house. Renter

Calendar

After clicking to schedule an open house, you'll see it in your calendar. Calendar

haven's People

Contributors

zhichunl avatar zhongxiayan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

haven's Issues

Button for adding property

screen shot 2018-09-25 at 9 34 32 pm

Probably better to use another default react button and structure the css so that there is more structure to applications and my properties.

Haven Home Page Wording and Fonts

When you find the place you love, sign up to one-click apply <3 -> probably delete the <3. And try to update the jsx style to match the design.

Add new property form

screen shot 2018-09-25 at 9 35 58 pm

Can we make this form like? @ZhongxiaYan open house is the most important element -> should popup a calendar that allows them to choose blocks of time for the open house. Right now this page looks like craigslist. At least, give them ability to choose multiple dates for open house?

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.