Complete units 6, 7, 8, and 8+ at https://sqlzoo.net/. In sqlzoo_answers.sql
, paste in the correct queries. If you already did these over the weekend, you don't have to do it over!
You will build an express app that performs some simple math and string calculations, based on the data the user inputs through the route parameters.
- When I visit the root of the app, I see a page like this:
- When I visit
/math/double/<any-number>
, I see a page like this: - When I visit
/math/square/<any-number>
, I see a page like this: - When I visit
/string/reverse/<any-string>
, I see a page like this: - When I visit
/string/upcase/<any-string>
, I see a page like this:
- An express app that exhibits all the required behaviors. Your app should use the
express
,ejs
, andexpress-ejs-layouts
packages. - A
mathController
and astringController
, defined in their own files, and referenced inindex.js
- A
views
directory that contains amath
and astrings
directory, which each contain the appropriate ejs files - A layout that your views are rendered within. The layout should contain the header and the "Instructions" link, which should point to your root route.
- Remember to NOT commit your
node_modules
directory!