In this recipe, we will start persisting the
Todo objects added to
POST requests to a data store. We will also persist edits done through
PUT requests and remove
Todos from the data store, which are removed through
DELETE requests. The implementation of the data store for the
Todo objects is not very interesting. It can easily be done against any database and is left as an exercise for you. For inspiration, you can have a look at the code download for this recipe where the data store is implemented against MongoDB.
This recipe will show you how Nancy uses dependency injection to make taking dependencies in modules easy and how to use a Nancy
bootstrapper to configure ...