parking-system

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

MIT License

Stars
0
Committers
2

Parking System

Parking allocation system

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

Use the plain-English descriptions to generate a report of where the application conforms to (or fails to meet) the spec

bin/rspec --format documentation 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

Badges
Extracted from project README
CI Dependabot Status
Related Projects