Coder Social home page Coder Social logo

acyg2212 / kneadedtranquility Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5.14 MB

A website for a spa so that clients can book online and see their past and future appointments.

Shell 0.15% JavaScript 86.01% HTML 1.28% CSS 12.56%
appointment future-appointments schedule

kneadedtranquility's Introduction

Kneaded Tranquility

Alt text

User Stories

  • As a typical user I want to be able to schedule an appointment without picking up the phone.
  • As a typical user I would like to see my past and future appointments and who they were with.
  • As a user I would like to be able to navigate through a spas website wihtout confusion.
  • As a spa owner I would like to see the appoinments in a user friendly way.

Features MVP

  • Sign Up Page with First Name, Last Name, Email, Phone Number
  • Log-in Page with Email and Password authentication
  • A way for the user to schedule a spa appointment and certain employee availability
  • When a user is logged in will be able to see their past and future appointments

Stretch Goals

  • A sign in page for employees to see clients that are scheduled.

Overall Structure

Back end

The app was built using Express with a PostgreSQL Database. The Kneaded Tranquility App is RESTful

Front end

The front end is completely built with React and JavaScript. Using React there wasn't any need for refreshes or extra calls to the database.

Libraries

  • React.js
  • BCrypt
  • Express
  • Sequelize
  • Redux
  • React-datepicker

Primary Components

User Authorization

User Authentication is handled in Express by the BCrypt library. Passwords are not saved in the database, only the hashed passwords. When a client logs in, the password is hashed and checked against the original encrypted password.

Alt text

Scheduling Appointments

Using React components, useState, and useEffect hooks, to dynamically render the appointment form. It is then sent to the back end and stored in the Services table in the database.

Alt text

Clients Appointment Screen

React's useEffect hook is used to make a call to the backend API to get all appointments for the client. The current date is then found using JavaScript Date object. Then the appointments are filtered to either past or future appointments.

Alt text

Tables

  • Users(clients)
    • First Name
    • Last Name
    • Password Hashed
    • Phone Number
  • Service
    • Type
      • massage
      • Facial
      • nails
    • Price
  • Appointment
    • Day
    • Month
    • Year
    • Time
    • Service Id (belongs to service.id)
    • user Id (belongs to user.id)

kneadedtranquility's People

Contributors

acyg2212 avatar

Watchers

 avatar  avatar

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.