Skip to content

YHoP/shoes-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shoe-stores

Java Advanced Database Code Review

Author name - Yvonne Peng
Program name - Shoe Stores

Discription -

Epicodus Java 2015 Summer Class week 4 CodeReview
Write a program to list out local shoe stores and the brands of shoes they carry.
Make a Store class and a Brand class.

Setup PSQL instructions-

  1. In PSQL:
  2. CREATE DATABASE shoes;
  3. CREATE TABLE stores (id serial PRIMARY KEY, name varchar);
  4. CREATE TABLE brands (id serial PRIMARY KEY, name varchar);
  5. CREATE TABLE brands_stores (id serial PRIMARY KEY, brand_id int, store_id int);
  6. CREATE DATABASE shoes_test WITH TEMPLATE shoes;

![alt tag](https://raw.githubusercontent.com/YHoP/shoe-stores/master/src/main/resources/public/img/sql-table-design.png)

Setup instructions -

  1. Download this repository files to your computer.
  2. Navigate to the folder directory.
  3. Open command prompt in Windows or terminal in Mac.
  4. If you don't have PostgreSQL installed in your computer, check out this link and follow the instruction.
  5. Create a database: "shoes" in your computer.
  6. Run the following command "psql shoes < shoes.sql"
  7. Run the following command "Gradle run". (If you have not installed Gradle, check out the Gradle website )
  8. Open your internet browser and navigate to http://localhost:4567/
  9. The webpage would load automatically. You can manage your own local shoes store!!

Copyright: YHoP

License information: Open source licensing

About

Java Advanced Database Code Review

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published