hieuprogrammer / pokedex-3

A Java web app that stores the original 151 Pokemon in the Pokedex (using SQL database) along with their moves which are used in a separate battle mode game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Homepage

Pokedex

Individual Pokemon Page

Battle

Pokedex

A Java web app that stores the original 151 Pokemon in the Pokedex (using SQL database) along with their moves which are used in a separate battle mode game.

By Peter Beach, Adam Craig, Ashley Maceli and Kyle Wolfson

DISCLAIMER

We do not own the images used in this web app. We own no copyrighted or trademarked material herein. All rights belong to their respective owners.

Description

A Java web app that stores the original 151 Pokemon in the Pokedex (using SQL database) along with their moves which are used in a separate battle mode game. In the Pokedex, can view all Pokemon and view their individual pages for more details. In the Pokedex, the user can filter Pokemon based on name, move, type and ideal enemies to fight. In the battle mode game, players choose one of the 151 Pokemon and use their moves with various power and accuracy levels. Pokemon and Moves have a many-to-many relationship in the SQL database.

##Database Tables

Database

Setup/Installation Requirements

  • SETTING UP THE DATABASE AND TEST DATABASE
  • Clone repository to desktop
  • Use console to enter directory with all files
  • In a new console window run the command 'postgres' and keep running
  • In a new console window run the command 'psql' then 'CREATE DATABASE pokedex;'
  • In the same console window run the command 'psql' then 'CREATE DATABASE pokedex_test;'
  • In bash console run the command 'psql pokedex < pokedex.sql' to properly download the database file into the empty database you just created
  • In the same bash console run the command 'psql pokedex_test < pokedex_test.sql' to properly download the database file into the empty database you just created
  • (Alternative to downloading test database file: Run the command '\c pokedex' to connect to the database. To create the test database run the command 'CREATE DATABASE pokedex_test WITH TEMPLATE pokedex;')
  • RUNNING THE WEB APP
  • In console run the command 'gradle run'
  • Open your browser and go to http://localhost:4567/

Known Bugs

Many images on full pokedex page. Run fine when files are local but if we decide to host elsewhere will need to implement a script for a type of lazy load for images to improve performance

Support and contact details

For all issues and support, please contact:

Technologies Used

Java, SQL, Spark, Velocity, HTML, CSS, JavaScript, Gradle, JUnit, FluentLenium

License

The MIT License (MIT)

Copyright (c) 2016 Peter Beach, Adam Craig, Ashley Maceli, Kyle Wolfson

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

A Java web app that stores the original 151 Pokemon in the Pokedex (using SQL database) along with their moves which are used in a separate battle mode game.


Languages

Language:Java 86.9%Language:CSS 13.1%Language:JavaScript 0.0%