DEV Community

StuartCreed
StuartCreed

Posted on • Updated on

Deploying a MERN stack

Solution 1: Heroku (https://www.heroku.com/)

Positives: Easy set up. Uses Docker containers within Amazon EC2 instances so that you only pay for what you use (PAAS).
Negatives: Costs £7 a month. Free tier times out your container after 30 mins of inactivity.

Solution 2: Amazon AWS EC2 Linux Instance.

Positives: This is a full machine (not a container) so you can configure it to your hearts content. This is available in the Amazon Free Tier for 12 months.

Negatives: Costs £14 a month after the first 12 months. You have to set up the server yourself, but you would be surprised how easy this is to do with NGINX or Apache. This article shows you how to set one up using NGINX https://link.medium.com/SvBPqJdXH5

Solution 3:
Amazon Lightsail

Positives: £3.50 a month so cost effective. MERN environment and apache server already set up.

Negatives: A restricted machine - but will allow a vast majority of what you need for Web Development. It is essentially streamlined EC2 machine with everything you should need for web development already set up.

Top comments (0)