Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 1.67 KB

README.md

File metadata and controls

71 lines (46 loc) · 1.67 KB

rentalcar-cli

A simple rental car simulation program using CLI.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  1. PostgreSQL 12.1. You can follow this instruction for the installation procedure.
  2. Ruby 2.6.0. You can follow this instruction for the installation procedure.
  3. Bundler 2.1.4. You can execute this command below:
$ sudo gem install bundler

How to use

These commands below will help you to use this project properly.

For the first, you need to clone this repository then run:

$ bundle install --path vendor/bundle

Next, you must make a new _config.yml file inside config directory using your own postgres configuration. For the format, you can write using this format below:

db_host: ''
db_user: ''
db_pass: ''
db_name: ''

When working

Running the tests

Open this project directory on terminal and execute this command below:

$ bundle exec rspec spec

Verifying code style

Open this project directory on terminal and execute this command below:

$ bundle exec rubocop 

You can reformat the code by executing:

$ bundle exec rubocop -a

When running this project

Open this project directory on terminal and execute this command below:

$ bundle exec exe/rentalcar

Acknowledgments

Thanks to @sweetescape for giving me the opportunity to do this coding test.