Parking allocation system
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
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
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