DEV Community

Stephane Mensah
Stephane Mensah

Posted on

Introducing Mongoosejs-cli: Generate models, migrations and seeders for mongoosejs right from your terminal

My first article and first npm/yarn package ever!

I am new to mongodb especially with nodejs. In my pursuit of learning mongodb with nodejs, i came across a tool called Mongoosejs(mongoose) which helps devs work with mongodb with ease. My repl.it page is where i started practicing mongodb and mongoose for the first time. It includes tutorials i followed on MDN by Mozilla.

When i used to play mysql and nodejs, i usually use Sequelize and its cli, so i was looking for a similar cli for mongoose. I did some search on the internet and i found these https://gist.github.com/waptik/c7557d7ac1f7ba2c3a6b589ee30b2ec5 . Most of them either don't have a configuration file or are not maintained or do just one thing(migration/seed).

I said to myself, why not build something of my own that will solve my problem? I went back to sequelize-cli github page, cloned the repo, started playing around with things and that's how Mongoosejs-cli was born. I also launched it on Product Hunt .

If you use mongodb with nodejs or mongoosejs, kindly give it a try and lemme know what your thoughts are.

Thanks 😄

Top comments (0)