This was a take-home interview project for a company. It was timboxed to 4 hours. I have since extended it.
-
Ask:
- "Prototype a web application for scheduling an appointment"
-
Input:
- "Given a CSV dataset that contains the active coaches and their weekly schedule of their available hours, Output the following User Stories:"
-
Output:
-
As a User, I want to see which coaches I can schedule with.
-
As a User, I want to see what 30 minute timeslots are available to schedule with a particular coach.
-
As a User, I want to book an appointment with a coach at one of their available times.
-
-
Anit-Requirements:
-
You can't do it all. We respect your time, and expect that you will have to make choices and tradeoffs for what is in scope for your deliverable.
-
Don't worry about authentication. Assume a non-authenticated experience to keep things simple.
-
Pick your stack. Choose any libraries that help you produce the highest quality work in the time available.
-
- Ruby 2.6.3 (Upgraded from Ruby 2.5.0)
- Rails 6.0.0 (Upgraded from Rails 5.2.1)
- Bootstrap for Responsive layouts (mobile first!)
- Rails Appointment Scheduler
- This is on a free
Hobby
tier so your millage may very.
I've setup this up, and am developing as I would in a normal Dev environment with other engineers.
This is a public repo (open source) so feel free to push a new branch and create a Pull Request for me with any questions!
-
I have been pushing branches and creating PR's on Github (ready for code review):
-
I have added a couple helpful integrations - CodeClime (Rubocop) and CircleCI (Rspec's):
-
Making use of inline Todo comments while working through the feature to show progress:
-
Rebasing my git commits (
git rebase -i origin/master
) for better clairity in the Git logs:
bundle install
bundle exec rails db:setup
bundle exec rails import:all_data:from_csv
bundle exec rubocop
bundle exec rails s
http://localhost:3000/