Mern App

screenshot of Mern App
express
react

Basic MERN app template for AWS EC2 Deployment guide

Overview:

The MERN App is a simple project repository containing a MERN (MongoDB, Express, React, Node.js) stack app with a focus on deploying a production-ready React-Express app. The project allows the frontend to call a simple API to confirm successful API calls. The benefit of the project is the utilization of a proxy with the Express server, allowing the React project to be built into static files that Express serves. This eliminates the need for separate servers for frontend and backend, simplifying project management and resolving CORS issues.

Features:

  • Project layout showcasing a generic MERN stack app structure.
  • Ability to set up project manually or with Docker, including Dockerfile and docker-compose.yml files.
  • Docker integration for easy setup and execution of the MERN app.
  • Cleaning up container and image post-project use to optimize resources.
  • Manual setup option for those interested in building the project themselves.
  • Running React server for frontend viewing at localhost:3000.
  • API functionality available for testing successful API calls.
  • Full-stack development using MongoDB, Express, React, and Node.js.

Summary:

The MERN App project offers a simplified approach to deploying React-Express apps through a MERN stack setup. Users can choose between Dockerized setup for easy deployment or manual installation for a custom approach. The integration of a proxy with the Express server eliminates CORS issues and streamlines the project's management. Overall, the project provides a practical solution for developers looking to create and deploy full-stack applications efficiently.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components