Coder Social home page Coder Social logo

hw-w05d01-wikipokepediamon's Introduction

WikiPokePediaMon

Hey it's me, your Project Manager

The reviews for WikiPotterPedia were amazing! The fanclub and all their users loved your work. Let's read some reviews:

"I liked it"

  • kid

"I did too"

  • other kid

"I'm hungry"

  • another kid

Absolutely stunning reviews by all accounts. Word of your legendary coding skills has spread fast and now their sister fanclub wants to hire us as well. This is a pokemon fan club who needs WikiPokePediaMon made STAT. These nerds want more this time - for their app they want a database. That's cool though, I hear you are wicked good at databases. No time to waste, we gotta catch em all!!1!11!!!

Set Up

Run psql -f db/seeds.sql to set up your pokemon database.

This App Needs 2 Pages:

Page 1 - A Homepage:

A user should be able to go to the homepage route / and see a html page that says: Catch 'Em All! and links the user to /pokemon

Page 2 - An Index Page:

A user should be able to go /pokemon to see a list of all pokemon in the database with their names and images.

There should also be a link back to the homepage.

BONUS (optional):

Add a show page:

A user should be able to go /pokemon/:id to an individual pokemon with their name, image, types, hitpoints, attack, defense, speed and if they are legendary!

There should also be links back to the homepage and the index page.

Add pagination:

The index page should have a list of only the first 50 pokemon. Going to /pokemon/page/2 will have pokemon 51 - 100 and /pokemon/page/3 will have pokemon 101 - 150.

Hints and Tips

  • Remember to build out your scaffolding!
  • Look back at the cheese app we made today to see how to set up pg-promise and construct your model.
  • Use res.locals to store all of your pokemon.
  • Send your pokemon to a view for mustache to render.

Submission

Homework is due tonight at midnight!

hw-w05d01-wikipokepediamon's People

Contributors

jackiecasper avatar nawafi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.