> For the complete documentation index, see [llms.txt](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/docs/start-new-project-1/generate-posts-service.md).

# Add mongoose

{% hint style="warning" %}
You can skip this step if you  find in your project this file:

src/mongoose.js

&#x20;if not, \
This step is important and do not skip it , even if you don't need posts collection, we need to create at least one mongoose service for feathers cli connect mongoDB and mongoose to our app
{% endhint %}

```
$ feathers generate service
   ? What kind of service is it? Mongoose
   ? What is the name of the service? posts
   ? Which path should the service be registered on? /posts
   ? Does the service require authentication? Yes        
```

Update your mongo db url at the config file

```
git add .
git commit -m "Generate posts service"
```
