Giter VIP home page Giter VIP logo

php-23093023909ad09a09's People

Contributors

darrennix avatar nonickdev avatar

Watchers

 avatar

php-23093023909ad09a09's Issues

Booking cleaner

We need a way for customers to signup and schedule a booking all on one form. To accomplish this you will need to do the following:
On this form, capture all the data needed to create a customer in the database (first name, last name, phone number).
If the customer already exists in the database (use phone number to determine this) use the existing record instead of creating a new one. You should probably add a validation to enforce this.
Let the customer select what city they are in from the cities table created earlier.
Let the customer specify a date, time, and number of hours for the home cleaning.
When the user submits the form, look for cleaners that work in the specified city that do not have any bookings that conflict with the time specified.
If you can find an available cleaner, create the booking and display the name of the cleaner assigned to the booking.
If you can't find an available cleaner, tell the user that we could not fulfill their request.

Split site to admin and customer area

We need to split the site in to Admin-only and Customer-only. Right now all the admin functionality is exposed to the world.

Make the site root a customer-facing form designed for customers to sign up and book a cleaner.

Admin. Stats cleaners by city

On the admin cleaner form we need a way to select the cities a cleaner works in. This should be a checkbox list populated by the list of cities we operate in. You may need to create a new table to store this data.

Epic

#2 All models and columns should have validation as described in the model spec below, plus any common-sense validation you'll put on new models.

#3 Currently we operate in 10 cities, but plan to expand quickly. We need a way to admin the list of cities we operate in and the ability to add to the list. You should create a new table to do this.

#4 We need to split the site in to Admin-only and Customer-only. Right now all the admin functionality is exposed to the world.
Make the site root a customer-facing form designed for customers to sign up and book a cleaner.

#5 We need a way for customers to signup and schedule a booking all on one form. To accomplish this you will need to do the following:
Make the site root a customer-facing form designed for customers to sign up and book a cleaner.
On this form, capture all the data needed to create a customer in the database (first name, last name, phone number).
If the customer already exists in the database (use phone number to determine this) use the existing record instead of creating a new one. You should probably add a validation to enforce this.
Let the customer select what city they are in from the cities table created earlier.
Let the customer specify a date, time, and number of hours for the home cleaning.
When the user submits the form, look for cleaners that work in the specified city that do not have any bookings that conflict with the time specified.
If you can find an available cleaner, create the booking and display the name of the cleaner assigned to the booking.
If you can't find an available cleaner, tell the user that we could not fulfill their request.

#6 On the admin cleaner form we need a way to select the cities a cleaner works in. This should be a checkbox list populated by the list of cities we operate in. You may need to create a new table to store this data.

Add city table

Currently we operate in 10 cities, but plan to expand quickly. We need a way to admin the list of cities we operate in and the ability to add to the list. You should create a new table to do this.

Validation data for model

All models and columns should have validation as described in the model spec below, plus any common-sense validation you'll put on new models.

customer
first_name (required)
last_name (required)
phone_number (optional)

booking
customer (required, enforce referential integrity)
cleaner (required, enforce referential integrity)
date (required)

cleaner
first_name (required)
last_name (required)
quality_score (required, must be a number between 0.0 and 5.0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.