Epicodus Java Week 4 Pair Project with Joanna Anderson: Build a virtual pet game with Java, Spark, and PostgreSQL.
Java CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Community.java
README.md
build.gradle
database.png
screenshot.jpg
sparkemon.sql

README.md

Sparkemon

Version 0.0.0: September 24, 2016

by Karen Freeman-Smith

Description

Practice project for Epicodus - Java, week 4 lessons. Create a virtual pet program using Java, Spark, and PostgreSQL.

screenshot of project running

Specifications

User Stories:

  • As a player, I can have multiple pets
  • As a pet, I need to eat, sleep, and play or I will die

Database Diagram:

database diagram

Technical Specifications:

Behavior Input Output
Can create players with name and email "Henry", "henry@henry.com" "Henry", "henry@henry.com"
Can create pets with name "Bubbles" "Bubbles"
Can assign multiple pets to a player Henry + Bubbles, Henry + Spud Bubbles, Spud

Setup/Installation

  • Clone directory

  • Setup database in PSQL:

    • CREATE DATABASE sparkemon;
    • \c sparkemon;
    • CREATE TABLE players (id serial PRIMARY KEY, name varchar, email varchar);
    • CREATE TABLE pets (id serial PRIMARY KEY, name varchar, playerId int, birthday timestamp, lastate timestamp, lastslept timestamp, lastplayed timestamp, lastspecial timestamp, type int, foodlevel int, sleeplevel int, playlevel int, speciallevel int);
    • CREATE DATABASE sparkemon_test WITH TEMPLATE sparkemon;
  • Type 'gradle run' inside the directory

  • Navigate to 'http://localhost:4567'

Support & Contact

For questions, concerns, or suggestions please email karenfreemansmith@gmail.com

Known Issues

  • N/A

Technologies Used

Java, JUnit, Spark, PostgreSQL, Gradle

Legal

Licensed under the GNU General Public License v3.0

Copyright (c) 2016 Copyright Karen Freeman-Smith All Rights Reserved.