This app helps users make a database for shoe stores and the brands they carry.
- The user can add/edit/delete a Store in the database, and assign specific Brands to that Store.
- The user can add a Brand to the database, and assign specific Stores to that Brand.
- Clone this git repository
- Set your localhost root folder to ~/assessment4/web/
- Ensure PHP server is running.
- Start Postgres and import shoes.sql database into a new database shoes
- Do the same for the test database: shoes_test.sql
- Use Composer to install required dependencies in the composer.json file
- Start the web app by pointing your browser to the root (http://localhost:8000/)
CREATE DATABASE shoes; \c shoes; CREATE TABLE stores (id serial PRIMARY KEY, storename varchar); CREATE TABLE brands (id serial PRIMARY KEY, brandname varchar); CREATE TABLE brands_stores (id serial PRIMARY KEY, store_id int, brand_id int); CREATE DATABASE shoes_test WITH TEMPLATE shoes;