Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 1.65 KB

README.md

File metadata and controls

82 lines (51 loc) · 1.65 KB

Parking System

CI Dependabot Status

Parking allocation system

Dashboard

Setup

Prerequisites

Create .env file at the root of the project directory. Copy the content of .env.template.erb to .env then update the username and password based on your database credentials

Install dependencies and setup database

bin/setup

Start local web server

bin/dev

Go to http://localhost:3000

Testing

Setup test database

bin/rails db:test:prepare

Default: Run all spec files (i.e., those matching spec/**/*_spec.rb)

bin/rspec

Run all spec files in a single directory (recursively)

bin/rspec spec/models

Run a single spec file

bin/rspec spec/models/entrance_spec.rb

Run a single example from a spec file (by line number)

bin/rspec spec/models/entrance_spec.rb:6

See all options for running specs

bin/rspec --help

Modules

Dashboard - Monitors the occupancy of the parking spaces

Entrances - List of parking entrances

Parking Lots - List of parking lots. You can add slot when adding new parking lot

Parking Slots - List of parking slots

Bookings - List of vehicle bookings