Giter Site home page Giter Site logo

epicodus-hair-salon's Introduction

Hair Salon Management Site

Code review project for Epicodus C# week 3

By Rane Fields

Description

This app allows an administrator to manage employees and clients at a hair salon.

Setup/Installation Requirements

To download and use the source code of this project:

  • Clone the project using this link: https://gitlab.com/lydianlights-epicodus/csharp/hair-salon.git
  • Install .NET Core 1.1. You can get it here.
  • An SQL server is required for this project. If you have no SQL server environment on your computer, you can get MAMP here
  • Configure your server to listen on port 8889 and start it
  • Once logged into your server, run the following SQL commands:
    • CREATE DATABASE rane_fields;
    • CREATE TABLE rane_fields.stylists (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, PRIMARY KEY (id));
    • CREATE TABLE rane_fields.clients (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL, stylist_id INT NOT NULL, PRIMARY KEY (id));
  • Open the project directory HairSalon.Solution/HairSalon using terminal or powershell
  • From the directory HairSalon.Solution/HairSalon run the command dotnet restore to fetch the project dependencies.
  • The application can now compiled and started by using the command dotnet run. It will be hosted at localhost:5000

Setting Up Test Server

To set up the non-live database to test code against:

  • First follow all previous installation instructions
  • Login to your SQL server (once again using port 8889) and run the following commands:
    • CREATE DATABASE rane_fields_test;
    • CREATE TABLE rane_fields_test.stylists (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, PRIMARY KEY (id));
    • CREATE TABLE rane_fields_test.clients (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL, stylist_id INT NOT NULL, PRIMARY KEY (id));
  • Open the project directory HairSalon.Solution/HairSalon.Tests using terminal or powershell
  • From the directory HairSalon.Solution/HairSalon.Tests run the command dotnet restore to fetch the project dependencies.
  • Tests can be run using the command dotnet test

Project Specs

Project BDD specs can be found here.

Technologies Used

This project is powered by the ASP .NET framework and uses the C# MySQL Connector Library for MySQL integration.

Known Bugs

  • Currently the 'client update' functionality requires unchanged fields to be reentered.

License

This page is hereby released as public domain. No permission necessary for modification and distribution.

Copyright (c) 2017 Rane Fields

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.