This is a minimal working example of using the driver in a Kitura application.
To test it out, do the following:
- Run
mongodto start MongoDB running onlocalhost:27017. - Navigate to the
Examples/directory (one level up from this one.) - Run
../loadExampleData.shto load sample data into the database. - Navigate to the root directory of this example.
- Build with
export KITURA_NIO=1 && swift buildto enable using SwiftNIO for the networking layer. - Start the server with
swift run. - Navigate to
localhost:8080/kittensto see the example data loaded on the web page.