Here are what to display on your Pokémon's show page:
The pokemon's name
The image of the pokemon
An unordered list of the Pokemon's types (eg. water, poison, etc).
The pokemon's stats for HP, ATTACK, and DEFENSE.
module.exports = [
{
id: "001",
name: "Bulbasaur",
img: "http://img.pokemondb.net/artwork/bulbasaur.jpg",
type: [
"Grass",
"Poison"
],
stats: {
hp: "45",
attack: "49",
defense: "49",
spattack: "65",
spdefense: "65",
speed: "45"
},
];
Routes
Your app should use RESTful routes:
Index
GET /pokemon
Show
GET /pokemon/:id
New
GET /pokemon/new
Edit
GET /pokemon/:id/edit
Create
POST /pokemon
Update
PUT /pokemon/:id
Destroy
DELETE /pokemon/:id
GET /pokemon - display all pokemon
GET /pokemon/new - add new pokemon
GET /pokemon/:id - show specific pokemon
GET /pokemon/:id/edit - edit a specific pokemon
POST /pokemon - create a new pokemon
PUT /pokemon/:id - update a specific pokemon
DELETE /pokemon/:id - delete a specific pokemon
Step by stepSolved in 2 steps
- Q 7 and 9 Please explain your answersarrow_forwardradius_mean gives the average size of the cells in terms of the radius of circles drawn around each cell in the biopsy. texture_mean provides the amount of variation in light to dark values in an image of the cells. sb.regplot (data = cancer, x = "radius_mean", y = "texture_mean", "lowess = True, line_kws = {"color": "orange"}) --INSERT-- 40 texture_mean 35 20 15 10 10 15 20 radius_mean 25 Provide a brief explanation of what is displayed in this plot. Be sure to comment on the orange line and how it expresses the conditional mean of "texture_mean" for different values of "radius_mean."arrow_forwardbootstrap class for form control is class="form-control-file" class="input-group-text" class="form-control"arrow_forward
- Please help with Java code. Create student class Name Id Marks Create array of 10 student and print all studentsarrow_forwardActivity name: activity_main.xmlJava File: MainActivity.javaWrite the code needed to initialize binding variable in OnCreate method in MainActivity.java file.arrow_forwardPart 3. arange Method Define a method in simpy named arange. Its purpose is to fill in the values attribute with range of values, like the range built-in function, but in terms of floats. It has three parameters in addition to self, the last being optional: 1. start - a float indicating the first value in the range 2. stop - a float that is not included in the produced range values 3. step - a float whose default value is 1.0 that indicates how to increase (or decrease) each subsequent item in the generated range. Unlike the built- in range function, this can be a fractional, float value. Step cannot be 0.0. Think carefully about what the value of step tells you about how to design your loop(s) for this method. Before any looping, you should assert step != 0.0 to be sure you avoid an infinite loop with an invalid argument. positive = Simpy([]) positive.arange(1.0, 5.0) print("Actual: ", positive, " - Expected: Simpy([1.0, 2.0, 3.0, 4.0])") fractional = Simpy([]) positive.arange (0.0,…arrow_forward
- Can you please help me with this problem because I don't understand how to do this problem. Can you please help me with this problem. Can you please explain this step by step.arrow_forwardFill in the blanks to complete the following program: #include "splashkit.h" struct student { name; string id; int units; double grade; }; student create_student() { student temp; read_string("Please enter a name temp.id = read_integer("Please enter an id: read_integer("How many units: temp.name = temp.units %3D read_double("What is the current grade: "); return } int main() { new_student;arrow_forwardPrompt: Create a virtual pet care game where players can choose a cute pet and then feed, train, or play-with it. The game is based on a simple game loop, where at the beginning of each loop, the game notifies the player of the current pet status (hungry, sleepy, bored, etc.) The player should then select the corresponding actions to improve the status of the pet. After each action, the game loop is repeated and the pet values are updated. The status should be displayed along with the corresponding messages as well as the menu of actions. Design Requirements: Implement the Pet class Create the base Pet class. It should manage variables that keep track of the pet's state, such as how hungry/sleepy/bored/happy the pet is currently. Include a function that updates the pet's state values to reflect the passage of time. If any of the variables are above some threshold (such as 40 out of 100), the function should output the corresponding message such as "<Pet name> is hungry!" Each…arrow_forward
- True or False: Object privileges allow you to add and drop usersarrow_forwardServo project. Please look at the code below and write the algorithm and the explanation for the codearrow_forwardDescription:Create JFrame application called Dictionary.Set up three one-dimensional arrays to contain the equivalent English andother-language-of-your-choice nouns, and the images of those objects.Typing a word in one of the languages and hitting the appropriate buttonshould produce the translation and display the picture of that object. Makesure you check to see whether the word is in the dictionary. If it is not,display a message "Word is not found".Three arrays will be of equal length (array_length).The program should work for different array_length values. Test andupload for array_length = 10.Requirements: This project requires typing a word in one of the languages. So, theprogram should be interactive. The word search should be case-insensitive. Three arrays must be declared: two String arrays for words in twolanguages and the third array for pictures files names. List of words in dictionary should be displayed for user With arrays, use for or enhanced for loop. Enhanced for…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education