https://github.com/michaelharper/car-wash-code-challenge
A Laravel 24-hour code challenge I created at some point as part of an interviewing process. More details and screenshots: http://bit.ly/2wFDO2o
https://github.com/michaelharper/car-wash-code-challenge
Last synced: 3 months ago
JSON representation
A Laravel 24-hour code challenge I created at some point as part of an interviewing process. More details and screenshots: http://bit.ly/2wFDO2o
- Host: GitHub
- URL: https://github.com/michaelharper/car-wash-code-challenge
- Owner: michaelharper
- Created: 2017-08-20T12:51:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T04:14:27.000Z (over 2 years ago)
- Last Synced: 2024-12-28T20:46:13.970Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 1.76 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Car Wash Code Challenge
A Laravel 24-hour code challenge I accepted at some point as part of an interviewing process. For more details and screenshots visit http://bit.ly/2wFDO2o.
## Requirements from Potential Employer
You are running a car wash. Here are the rules:
- Your car wash accepts cars and trucks.
- You charge $5 for cars.
- You charge $10 for trucks.
- Your car wash charges $2 extra if the truck has mud in the bed.
- Your car wash does not accept trucks with the bed let down.
- If the vehicle comes in a second time, they get 50% off.
- If the license plate equals 1111111, the vehicle is stolen and does not get a car wash.Build a simple Laravel CRUD that enforces and demonstrates the above rules.
## Application Installation Steps
1. Clone develop branch of my github repo: git clone https://github.com/michaelharper/CarWash/tree/develop
2. cd into Car-Wash-Code-Challenge, `composer install`
3. Create carwash DB or change .env to reflect your local testing environment’s DB. If you don’t have a .env, create one from .env.sample which should be in the project root.
4. `php artisan migrate` should create the only table you’ll need for this which is visits - a way for me to log when customers visit the car wash.
5. OPTIONAL: You may have see an AES key error on your frontend depending on a few factors. If so, please run php artisan key:generate which should update your .env file. After that, I would recommend running php artisan config:clear and finally php artisan config:cache to ensure it flushes cache and updates config.