DEV Community

Bret
Bret

Posted on

MERN STACK.... costs

with a MERN stack, + Apollo,
How much does a stack usually cost?

If I made a simple portfolio with bootstrap, material-UI and then using Framer-Motion in my MERN...... how much does it cost?

Other than the MongoDB storage.

Top comments (10)

Collapse
 
bradtaniguchi profile image
Brad

Cheapest option would be something like heroku which would end up being free, but sleeps on 30 mins of inactivity.

After that I'd say Digital Ocean comes in around 5$. There probably are middle options, but idk of the quality of those.

However, for a portfolio do you really need a backend?

Collapse
 
yobretyo profile image
Bret

Thank you! Well, I’m practicing with different steps of creating. So far I don’t have a portfolio, but that’s because I’ve been going through trying to find what I “like”, but also.... I want to be on the end of “NEED”, so I’ve looked at Django, Python, Vue, React, Datascience, Flask, ....I like React, but more on the side of making things work... rather than styling.

Collapse
 
bradtaniguchi profile image
Brad

that's fine, but yeah I'd say a portfolio can be hosted for free a multitude of ways once you remove the backend element. (like using github pages)

If your on a budget heroku is fine for side projects that require backend, just don't expect to run at scale or have the best user experience, as it takes time to boot up from cold.

Otherwise of your learning this stuff for work, I'd look into the 3 big cloud providers, AWS (Amazon Web Services), Azure and GCP ( google cloud platform). As they are popular in that order :)

Thread Thread
 
yobretyo profile image
Bret

Thabk you! I was looking at AWS on MongoDB, but I think I’m using Google.

Thread Thread
 
bradtaniguchi profile image
Brad

All three of the main cloud providers provide similar offerings so you can pick. AWS is the largest and most popular, Azure is next and Google is last but still has roughly 10% market share. (to keep everything in perspective)

I'd look into mongodb-atlas, which is mongodb's (the company) database-as-a-service provider. It has a free tier and is managed by the company so its rather easy to use with whatever side project(s) you have in mind without breaking the bank :)

Thread Thread
 
yobretyo profile image
Bret

I’ve been using atlas, at least on one computer when I run “nodeman server.JS” it works.... the other it dosnt

Thread Thread
 
bradtaniguchi profile image
Brad

Could be a multitude of things, depends on how it doesn't work though.

  1. Your environment variable(s) isn't the same between the 2 computers, where an environment variable(s) to connect to the database are wrong
  2. Your missing dependencies
  3. Your code is actually different (check with git)
  4. Network error(s)
Thread Thread
 
yobretyo profile image
Bret

Could it be different if I’m using “const” vs “import” on one computer?

Collapse
 
yobretyo profile image
Bret

I am using “bodyParcer” on one, and not the other. Could that effect it?

Collapse
 
bradtaniguchi profile image
Brad

If your code is different, then yea anything could be messing you up.

If you know what is different, then change it to be the same and go from there. You should be able to isolate what is wrong if its just the code, thru basically trial and error.