Skip to content

AppMaintainers/book-my-house

Repository files navigation

Book My House

At this stage of the interview process, you'll be introduced to a very simple Ruby on Rails application, on which you'll have to do a number of exercises. Our goal with this is to examine the various skill sets you have. Let me just point out that you do NOT have to finish all the exercises in order to succeed. We'd rather like to learn the way you think, solve problems and your general knowledge on the topic by watching you work, than just discuss the sheer number of LoC you wrote.

The application you'll be working with today is practically a "guesthouse management app". You can book for a specific date, which will then be displayed on the main page. You're encouraged to try out it's functionality before starting any of the exercises.

If you come across an obstacle which proves to be difficult, feel encouraged to ask us anything! We'll be glad to answer or ask some leading questions. (Or just utilize Google, StackOverflow or https://guides.rubyonrails.org/ to your liking.)

We will provide the tasks later.

I wish you success!

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You'll need to set up you development environment to be able to start the project. You can read the required list in the .tool-versions file.

Linux or macOS

  1. Get asdf-vm
  2. Install required plugins
    asdf plugin add ruby
    asdf plugin add nodejs
    asdf plugin add yarn
    asdf plugin add sqlite
  3. Install tools
    asdf install

Windows

You need to install the required tools one by one, please try to select the same version we defined in the .tool-versions file.

  1. Install Ruby with RubyInstaller. (Note: you need a Ruby+Devkit installer)
  2. Install NodeJs
  3. Install yarn with npm install -g yarn

The installers might ask for Administrator privileges, but you won't need it later. Use normal cmd.exe to run the commands below.

Installing

After installing the Prerequisites, you need to

  1. Install all dependencies
    bundle install
    yarn install
  2. Create the database
    rails db:setup
  3. Finally start your local development server
    rails s
  4. Optionally you can run shakapacker dev server to speed up asset handling
    bin/shakapacker-dev-server
    or
    ruby bin/shakapacker-dev-server
    on Windows

Running the tests

For automated tests, we are using Rails' defaults

End to end tests

You can run the test suit with rails test

Coding style checks

We're using rubocop to enforce some consistency. You can run it with rubocop -ED.

Deployment

Currently we don't have deployment workflow as it's just a demo application

Built With

Contributing

We are not accepting Pull Requests.

Versioning

We are using rolling release to update this demo app from time to time.

Authors

About

Join to our lovely team by solving this assigment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published