arashsheyda / nuxt-mongoose

A Nuxt module for simplifying the use of Mongoose in your project.
https://docs.arashsheyda.me/nuxt-mongoose
69 stars 11 forks source link

The example doesn't work #31

Closed TiroZit closed 7 months ago

TiroZit commented 7 months ago

Your example doesn't work, either locally or on stackblitz. Also tried installing nuxt-mongoose separately and still doesn't work either. Although if you put a regular mongoose, everything works. It doesn't connect or it gives an error also when connecting Error connecting to MongoDB connect ECONNREFUSED 127.0.0.1:27017

https://stackblitz.com/github/arashsheyda/nuxt-mongoose-minimal https://github.com/arashsheyda/nuxt-mongoose-minimal

arashsheyda commented 7 months ago

here is the deployed version which is working. just make sure to add a uri for connection. either in nuxt.config.ts mongoose.uri or in your .env as MONGODB_URI