Skip to content

Parking allocation system using Rails 7, PostgreSQL, React, and React Bootstrap

Notifications You must be signed in to change notification settings

binos30/parking-system

Repository files navigation

Parking System

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)

rspec

Run all spec files in a single directory (recursively)

rspec spec/models

Run a single spec file

rspec spec/models/entrance_spec.rb

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

rspec spec/models/entrance_spec.rb:6

See all options for running specs

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