Giter VIP home page Giter VIP logo

wimdu-cli's Introduction

A standalone app that allows users to list their place via a CLI. For the sake of simplicity, the data is kept locally. Similar to the web app it should be possible to enter partial data and continue later.

  1. Usage
  2. Installation
  3. Notes

Usage

  • Allow users to create new properties from the command line
  • Prompt for attributes, validate the input
  • When the data entry is interrupted, provide a way to resume entering data An example session could look like this:
$ wimdu list
No properties found.
$ wimdu new
Starting with new property ABC1DEF2.

Title: Amazing room at Wimdu Office
Address: ^C
$ wimdu list
No offers found.
$ wimdu continue ABC1DEF2
Continuing with ABC1DEF2

Address: Voltastr. 5, 13355 Berlin
Nightly rate in EUR: 12
Max guests: Two

Error: must be a number

Max guests: 2
^C
$ wimdu continue ABC1DEF2
Continuing with ABC1DEF2

Email: [email protected]
Phone number: +1 555 2368

Great job! Listing ABC1DEF2 is complete!
$ wimdu list Found 1 offer.
ABC1DEF2: Amazing Room at Wimdu Office

Installation

After you choose the local storage that comply with active-record, change that in the Gemfile, create a file config/databases.yml similar to config/databases.yml.sample with your config, follow the following steps

  1. bundle install
  2. rake db:create
  3. rake db:migrate

The project is based on rvm, if you don't use it, the ruby version used here is ruby-2.1.2

Notes

While this project uses rvm for the sake of rspec tests, you need /usr/bin/ruby to match the version required by the implementation i.e. ruby-2.1.2

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.