For today's exercise we will debug an Express App! It will be your job to move step by step through the app in order to find the bugs and fix them. Watch out for syntax errors, as well as those affecting modules and file paths, and general functionality. There are a total of 9 bugs in the entire program.
- fork and clone this repo
- run npm install to install packages
createdb schools_mascots_test
&psql -d schools_mascots_test -f db/schools_mascots.sql
or if you're on Windows (eww), enter your psql shell and fill in your database manually- run npm start to start the server
- I FORGOT TO PLACE
views/index.html
, here's the code for it:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/style.css">
<script type="text/javascript" src="/js/script.js"></script>
<title></title>
</head>
<body>
<p> This is a mascot database thing </p>
<a href="/mascots">Click here to see some of them </a>
</body>
</html>
The app needs the following features to work correctly from a user's perspective
- Go to homepage
- See all the Mascots
- See an individual Mascot and its school
- See an individual School
- Edit a Mascot's name and image
- Create a new Mascot
- Make sure all links on every page work
- Ensure that the views are displaying all the information they should be
- Use error messages
- Use console.logs
- Use your brain