Coder Social home page Coder Social logo

csharp-salon's Introduction

Hair Salon Manager

This web app tracks stylists and their clients for a hair salon. {December 2016}

By Brad Copenhaver

Description

This program uses a local database to keep track of different stylists and each of their clients for a hair salon. Each client is assigned to an individual stylist. The user can create new stylists or clients and see a list of each stylist's clients. Information for stylists and clients can be changed after they are created, and individuals of either type can be deleted from the system.

Specifications

This program will...

  1. Save a record of info for an individual stylist.
  • Input: Stylist: Grace
  • Output: Stylist: {1, Grace}
  1. Display a list of saved stylists.
  • Input: All stylists
  • Output: Stylist: {1, Grace}, {2, Harmony}, ...
  1. Save a record of info for an individual client that is assigned to a stylist.
  • Input: Grace's Client: Cathy
  • Output: Client: {1, Cathy, 1}
  1. Display a list of any stylist's clients.
  • Input: Harmony's clients
  • Output: Client: {1, Cathy, 1}, {2, Cindy, 1}, ...
  1. Edit saved info for any individual.
  • Input: Client Cathy -> Kathy
  • Output: Client: {1, Cathy, 1} -> {1, Kathy, 1}
  1. Delete any individual client.
  • Input: Remove Client Kathy
  • Output: Client: {1, Kathy, 1} -> {}
  1. Delete any individual stylist and all of that stylist's clients.
  • Input: Remove Stylist Grace
  • Output: Stylist: {1, Grace), Client: {1, Kathy, 1} -> {}, {}

Setup/Installation Requirements

  1. Clone this GitHub repository.

  2. From the command prompt, run '>SqlLocalDb.exe c MSSQLLocalDB -s' to create an instance of LocalDB.

  3. Run the command '>sqlcmd -S "(localdb)\MSSQLLocalDB"' and run the following SQL commands to create the local database and tables:

     >CREATE DATABASE hair_salon
     >GO
     >USE hair_salon
     >GO
     >CREATE TABLE stylists(
     > id INT IDENTITY(1,1),
     > name VARCHAR(255)
     >)
     >GO
     >CREATE TABLE clients(
     >	id INT IDENTITY(1,1),
     >	name VARCHAR(255),
     >	stylist_id INT
     >)
     >GO
    
  4. Navigate to the repository in terminal and run the command >dnu restore

  5. In the same location, create a local server by running the command >dnx kestrel

  6. Open a web browser and navigate to localhost:5004 to view the app.

Known Bugs

None yet.

Possible future version features

Add more properties to Stylist and Client. Reassign a client to a different stylist. Two column homepage with lists on one side and details on the other.

Support and contact details

If you have questions or comments, contact the author at [email protected]

Technologies Used

  • C#
  • SQL
  • Nancy framework
  • Razor view engine
  • html/css
  • Bootstrap

License

This project is licensed under the MIT license.

Copyright (c) 2016 Brad Copenhaver

csharp-salon's People

Contributors

bradcopenhaver avatar

Watchers

James Cloos 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.