GithubHelp home page GithubHelp logo

fair_bnb's Introduction

README

This is our Cloney Island Project!! ROMPHIM

Production Site: https://fair-bnb.herokuapp.com/

run Bundle

run rake db:reset

run bundle exec figaro install & add keys to config/application.yml:

GOOGLE_CLIENT_ID: <KEY>
GOOGLE_CLIENT_SECRET: <SECRET_KEY>
FACEBOOK_KEY: <KEY>
FACEBOOK_SECRET: <SECRET_KEY>
GOOGLE_MAP_KEY: <KEY>
WEATHER_KEY: <KEY>
test:
  GOOGLE_USER_TOKEN:
  FACEBOOK_USER_TOKEN:

Internal API

The following api endpoints are available:

For users

/api/v1/users/money/most_revenue lists users who have made the most money as property owners based on reservation income. Can take a limit param, default is 10 users.

/api/v1/users/money/most_spent lists users who have spent the most money on reservations. Can take a limit param, default is 10.

/api/v1/users/properties/most_properties lists users who have the most properties listed that they are the owner of. Can take a limit param, default is 10.

/api/v1/users/reservations/bookings lists users who have made the most reservations. Can take a limit param, default is 10.

/api/v1/users/reservations/nights lists users who have booked the most number of nights. Can take a limit param, default is 10.

For reservations

/api/v1/reservations/by_month lists count of reservations by month. Can take a city param, that scopes to reservations by month for that city, default is for all reservations.

fair_bnb's People

Contributors

bethknight1234 avatar caward12 avatar ebassity avatar lao9 avatar slague avatar victoriavasys avatar

Watchers

 avatar  avatar

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.