Skip to content

kylepratuch/hair_salon

Repository files navigation

Hair_Salon

In-browser hair salon management app, 8/21/2015

By Kyle Pratuch

Description

Hair salon allows users to add stylists' names to a database. Each stylist can also have a list of clients associated with them. Users are able to manage both types of lists with edit and delete features.

Setup

  1. Clone this repository: run command 'git clone https://github.com/radradish/hair_salon.git' then change directory to top level of project folder.
  2. Use Composer to install dependencies: run command 'composer install' to download vendor files for Silex, Twig, and PHPUnit (if you wish to run the included tests).
  3. A local SQL server is needed to run the app: - In your terminal: 'mysql.server start' followed by 'mysql -root -proot' - If you would like to create the databases from scratch, use the following commands: - CREATE DATABASE hair_salon; - USE hair_salon; - CREATE TABLE stylists (name VARCHAR (255), id serial PRIMARY KEY); - CREATE TABLE clients (name VARCHAR (255), stylist_id INT, id serial PRIMARY KEY); - (Then copy to hair_salon_test using phpmyadmin if you would like to run the included tests.) - Be sure are using the correct server address in app/app.php, tests/StylistTest.php, and tests/ClientTest.php!
  4. Start your server in the 'web' folder: to use PHP's built-in server, run command 'php -S localhost:8000'
  5. View the app: in your browser, navigate to the home page at the root address. If running a server as described above, go to 'http://localhost:8000'.

Technologies Used

PHP, Composer (Silex, Twig, PHPUnit), MAMP, MySQL

Legal

Copyright (c) 2015 Kyle Pratuch

This software is licensed under the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Epicodus Week 3 Code Review

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published