You must hand in by using git
bitbucket.org,
gitlab.com, or
github.com,
git push your local repo to the above remote repo.
node_modules/
.gitignore file.
Send a mail to <nmla@iba.dk> with:
handin <subjectname>'
in the subject line of your mail
We have created a MongoDB version of the world
database from MySQL. The backup is placed for your
download from here.
Download it, unzip it, and install it by the procedure shown in the section called “Backup/Restore of MongoDB”.
In the world database you have just downloaded and
installed, you will notice two collections that were not present
when you first got aquainted with the database.
They are continent, and governmentform.
In the model solution shown earlier in todays material, you
saw a data entry HTML5 form for country. Either in that
solution, or in your own similar solution, you must,
in the form change
the input field for continent, and governmentform to
be drop downs, ie select elements with
options for the valid data. The valid
data must be read from the two new collections in the
world database. As a hint,
take a look a the model solutions way of creating the drop
down for selection of country for display.
Take your site, as it looks after solving the previous
assignment. And make a copy of it into another project
folder. When that is done, you must refactor
it so that you use mongoose for all database
activity. The assignment includes writing schemas for
the three involved collections continent,
governmentform, and country.
Here is a series of questions that you must find answers to
in the world database.
If you run out, we can easily come up with more :)