Skip to content

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

License

Notifications You must be signed in to change notification settings

binos30/parking-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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