Backend service for a parking lot that has 54 spots. Tickets are generated when the car enters and the exit time is marked.
Make sure to have installed:
- Ruby 2.7.0
- Docker
To configure the service:
- Run
bundle install
to install libraries and gems. - To start dependencies run
docker-compose up
- Make sure your database is up to date running the migrations
bundle exec rake db:migrate
- Run the migrations in
test
env as wellENVIRONMENT=test bundle exec rake db:migrate
- Run the tests to check everything is working fine
rspec spec