DEV Community

Bret
Bret

Posted on

Strapi CMS media VS MongoDB

I have cards I want to display pictures to, BUT, this is a MERN stack with Strapi CMS....
Can I have pictures uploaded to my assets vs MongoDB, and loop through???
Or, is it better to Store them in MongoDB?
BUT....... how???

Top comments (5)

Collapse
 
sauloco profile image
Saulo Vargas

As a rule of thumb usually I just store in DBs things that could be indexed and searchables. So most files end up in some file system (server, S3 Bucket, whatever) separated from the database.
Also I've worked with Strapi a lot.

Collapse
 
yobretyo profile image
Bret

Which do you prefer? I can’t really find all that great of a “steps” on how to display the pictures from MongoDB.... Strapi made a separate folder (collection?) that the pictures are in, it’s not in my “Store” folder, it made a “pictures” folder.

Collapse
 
yobretyo profile image
Bret

I joined the slack page for Strapi, but the people overlooked my need for help.

Collapse
 
yobretyo profile image
Bret

What’s a good step by step to use the pictures from MongoDB? it’s a bit different from the typical schemas??

Collapse
 
ilyaskarim profile image
Ilyas Karim

I created an npm library called wertik-js which can be used to create backend APIs with GraphQL and Rest API, supports Sockets, Backups, Mail, and Cron jobs.

Here it Is github.com/Uconnect-Technologies/w..., but in development right now, Working hard to publish a stable version.

please devs show some love by fork or stare, I will consider it as a contribution.

Repo: github.com/Uconnect-Technologies/w....