Using a MySQL database, this app allows users to see the brands a store offers, and the stores which offer a particular brand.
- Clone repository from GitHub.
- Run $ composer install in the terminal.
- Setup mySQL databases. Instructions using MAMP as server:
- Enter $ /Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot
- Turn on servers in MAMP
- Access phpMyAdmin
- Import shoes.sql from the GitHub project folder and create copy named shoes_test.
- In another tab in the terminal, run $ cd ~/Path/To/Project/Folder
- In order to get into the web directory, run $ cd web
- In order to start a PHP server, run $ php -S localhost:8000
- Direct browser to localhost:8000
- Organize those shoes!
- mysql.server start
- mysql -uroot -proot;
- CREATE DATABASE shoes;
- USE shoes;
- CREATE TABLE stores (id serial PRIMARY KEY, name VARCHAR (255));
- CREATE TABLE brands (id serial PRIMARY KEY, name VARCHAR (255));
- CREATE TABLE stores_brands (id serial PRIMARY KEY, store_id INT, brand_id INT);
- CREATE DATABASE shoes_test;
- USE shoes_test;
- CREATE TABLE stores (id serial PRIMARY KEY, name VARCHAR (255));
- CREATE TABLE brands (id serial PRIMARY KEY, name VARCHAR (255));
- CREATE TABLE stores_brands (id serial PRIMARY KEY, store_id INT, brand_id INT);
PHP, mySQL This app uses the Silex framework to structure the app and Twig for the views.
Copyright (c) 2015 Kelli Sommerdyke
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.