Skip to content

jeffaustin81/shoe_store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shoe Stores

Allows users to add stores and the brands they carry, 8-28-2015

By Jeff Austin

Description

This application allows users to add stores and add the brands that the stores carry. User can also edit and delete stores, delete brands associated with a specific store. No edit functionality on brands.

Setup

  • This set up is for Mac
  • Clone this repo to your computer
  • Download MAMP in order to run a local apache server and work with MySQL
  • Once MAMP is installed, open MAMP and click start servers

Database Setup

  • In your terminal follow the below commands to set up your database
$ /Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot;

$ CREATE DATABASE shoes;

$ USE shoes;

$ CREATE TABLE stores (name varchar (255), id serial PRIMARY KEY);

$ CREATE TABLE brands (name varchar (255), id serial PRIMARY KEY);

$ CREATE TABLE stores_brands (store_id int, brand_id int, id serial PRIMARY KEY);

  • Install composer
  • Run composer install from the root folder of this clone in your terminal
  • Navigate to the web folder in the terminal
  • Run php -S localhost:8000
  • Enter http://localhost:8000 in your browser and enjoy!

Technologies Used

PHP, Silex, Twig, PHP Unit, MAMP (Apache, MySQL)

Legal

Copyright (c) 2015 Jeff Austin

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

Shoe store application that allows users to add stores and list the brands those stores carry. 8-28-2015

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published