Coder Social home page Coder Social logo

rails-simple-airbnb's Introduction

Rails Simple Airbnb 🏑

A simple airbnb clone. Here is the sample Demo.

Getting started

  • Ruby version

    ruby version 2.6.3
    
  • Install yarn

    # OSX
    brew install yarn
    
    # Ubuntu
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    sudo apt-get update && sudo apt-get install yarn
  • Bootstrap and JavaScript dependencies

    yarn add bootstrap jquery popper.js
  • Generate new rails app

    rails new <your-project-name>
    cd <your-project-name>
  • How to run the test suite

    • Add gemfile for test
    echo "gem 'rspec-rails', group: [ :test ]" >> Gemfile
    echo "gem 'rails-controller-testing', group: [ :test ]" >> Gemfile
    bundle install
    • Run test
    rspec spec
  • Run the app on http://localhost:3000/.

    rails s

Spec

Some features of user stories you can think of:

  • As a user, I can see all the available flats on our website
  • As a user, I can post a flat to the website, specifying its name and address
  • As a user, I can see detailed information of a given flat
  • As a user, I can edit the details of a flat if I made a mistake
  • As a user, I can delete a flat from the website, in case I don’t want to rent it anymore

rails-simple-airbnb's People

Contributors

dependabot[bot] avatar jun-low avatar

Watchers

 avatar  avatar

Forkers

lumawewe

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.