Skip to content

A command line interface application useful for managing an organization or business

Notifications You must be signed in to change notification settings

vjotchere/detroit-spiritual-healing-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

detroit-spiritual-healing-services

A command line interface application that allows an organization/business to manage the schedules and appointments of it's employees and clients, respectively.

Overview

You run a software development agency. A client of yours, Detroit Spiritual Healing Services, has asked you to build an application to help manage its operations.

Detroit Spiritual Healing Services (DSHS) offers services such as mind reading, demonic exorcism, potion therapy, and liver transplants. DSHS is staffed by a receptionist and five service professionals licensed by the Michigan Board of Freaky Medicine.

Because DSHS is philosophically opposed to graphical UIs, they have asked for a command-line-only application.

Desired features

Add/remove services

Each service has a name, price and length.

Add/remove service providers

Each service provider has a name, phone number and list of services provided.

Schedule appointment

Need to keep track of when the appointment happens, what services it is, what client the appointment is with and which service provider the appointment is with. If the appointment conflicts with another appointment, it should not be allowed to be scheduled. If the selected service provider does not offer the specified service, the appointment should not be allowed to be scheduled.

Some clients have standing appointments that occur e.g. every Tuesday at 2pm in perpetuity.

Create/delete availability block

Not every service provider is available all the time. We need the ability to track recurring days off as well as one-offs.

View schedule

You should be able to view a schedule for any particular service provider for a particular day. The schedule view should include existing appointments as well as unscheduled available time.

Implementation guidance

You can use a library called TTY::Prompt to help with the command-line interface portions of the application.

Below is a small TTY::Prompt example. If you were to put the code below in a file called program.rb, you would run it by running ruby program.rb on the command line.

require 'tty-prompt'

prompt = TTY::Prompt.new

date                  = prompt.ask('Date:')
start_time            = prompt.ask('Start time:')
service_provider_name = prompt.ask('Service provider name:')

About

A command line interface application useful for managing an organization or business

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages