Skip to main content

Exercise 10

  • Create the following folder/file structure:
/ex_10
|-- index.js

index.js

  • Create a Express web server using port 3000
  • Create the following routes:
    • GET '/'
      • Connect to the MongoDB with the npm package mongodb
      • Select comics database
      • Find all documents in the superheroes collection
      • Returns an JSON array of superheroes