Skip to content
Branch: master
Find file History


This is a minimal working example of using the driver in a Vapor application.

To test it out, do the following:

  1. Run mongod to start MongoDB running on localhost:27017.
  2. Navigate to the Examples/ directory (one level up from this one.)
  3. Run ../ to load sample data into the database.
  4. Navigate to the root directory of this example.
  5. Run swift run.
  6. Navigate to localhost:8080/kittens to see the example data loaded on the web page.
You can’t perform that action at this time.