Exobiology II

The previous planet got raided by pirates and our scientists have sucessfully escaped! They are, understandably, a bit shaken. So we have a new batch of scientists that are coming in to take their place and continue the planetary survey while they recoup!
Learning Objectives
- Full CRUD App
Prerequisites
- Javascript
- Node / Express
Getting Started
- You'll be working in the same
uncharted_planetfolder - If you didn't finish the morning lab, go back and finish that first!
- If you didn't attempt to delete the entire database, delete all the scientists now
- Then create 5 new scientists
Edit Route
Our five new scientists have been doing well, but it seems the previous five are ready to jump back into action! Let's expand the morning's app so that we can just update the scientists.
- Create an
editroute in yourserver.js - Create an
edit.ejsfile and fill it with aformto edit data - Add a link to the
editroute on yourindex.ejsonto all the scientists
Put Route
- Create a
putroute in yourserver.js - Make sure the
formin youredit.ejsfile has the appropriate method and action - Make it so that after updating the data, the route also redirects to the
indexpage - Update your 5 scientists!
Hungry for More
- If you didn't do this morning's hungry for more options, do those first then continue below
- The show pages of each scientist should have a link to the edit page
- The edit page should have a delete button which will delete the specified item
- If you didn't this morning, create categories for the different types of life. For example, store "Plants" and beneath that, "Flowers", and then individual entries. Then be able to edit the names of the categories
- Create a copy button that duplicates an entry and then goes directly to the edit page
- Enter images for each item and display them on the homepage. (Hint: you can use static assets.)
Hungrier for Even More
- Use taxonomic rank to order your items in a drill-down manner. Be sure your data objects reflects this hierarchically.