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