All Projects → t-ho → mern-stack

t-ho / mern-stack

Licence: MIT license
MERN Stack with Docker - MongoDB - Express - React - Redux - React Native - NodeJs

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
shell
77523 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to mern-stack

dhan-gaadi
A complete online bus reservation system (Node, React, Mongo, NextJS, ReactNative)
Stars: ✭ 207 (+305.88%)
Mutual labels:  mern-stack
react-app-simple-chat-app
A Simple Chat Application using MERN stack (MongoDB, Express JS, React JS, Node JS) and Socket.io for real time chatting
Stars: ✭ 41 (-19.61%)
Mutual labels:  mern-stack
mern-apollo-graphql-boilerplate
MERN + Apollo-Graphql Boilerplate
Stars: ✭ 21 (-58.82%)
Mutual labels:  mern-stack
arc
Fullstack open source Invoicing application made with MongoDB, Express, React & Nodejs (MERN)
Stars: ✭ 1,291 (+2431.37%)
Mutual labels:  mern-stack
Trellis
A simplified Trello clone built with React, Redux, Node, Express and MongoDB.
Stars: ✭ 116 (+127.45%)
Mutual labels:  mern-stack
mern-stack-crud
MERN stack (MongoDB, Express, React and Node.js) create read update and delete (CRUD) web application example
Stars: ✭ 142 (+178.43%)
Mutual labels:  mern-stack
amazin
A MERN-stack app for eCommerce platform, Webshop, Web Store. Storybook: https://www.amazin.one/ Alternative: https://ntrix.github.io/amazin-story
Stars: ✭ 27 (-47.06%)
Mutual labels:  mern-stack
mern-boilerplate
React + Express + Webpack + Mongo = MERN Stack Boilerplate
Stars: ✭ 39 (-23.53%)
Mutual labels:  mern-stack
Awesome-Projects-Collection
This is a beginner-friendly repo to make a collection of some unique and awesome projects. Everyone in the community can benefit & get inspired by the amazing projects present over here.
Stars: ✭ 175 (+243.14%)
Mutual labels:  mern-stack
spaq
Template for quickly setting up an SPA
Stars: ✭ 45 (-11.76%)
Mutual labels:  mern-stack
add-my-name
No more WhatsApp spams 🎉
Stars: ✭ 16 (-68.63%)
Mutual labels:  mern-stack
inCyberPunk2022
👾 https://cybersocial.herokuapp.com/   C̵̡̡͓̪̺̲̺̳̭̱̩͖͔̽̈́͜y̵̢̺̮̥̠̲̼̫͗b̴̲͇̟̭̹͆͒̈́̒͋̃̌̇̈̆̚͠͠ȅ̷̡̢̩̺̏r̴̢̛̹̲̜͙͉̩̩̣͉̺͂̀́̈́̇͛͋̊̉̈́̇P̵̡͊̚ų̵̙̣͓̤̼̭̤̥̯̻̯̒ͅň̸̛̯͕̦̦͓̙̋͐̈́́̉ͅḱ̷̡̪͚͉̟̘̳̯̳͉̈́͐͂̇̾͑̕̕͝ͅ
Stars: ✭ 28 (-45.1%)
Mutual labels:  mern-stack
MERN-Boilerplate
A simple Mern Boilerplate with auth
Stars: ✭ 112 (+119.61%)
Mutual labels:  mern-stack
MCW-OSS-PaaS-and-DevOps
MCW OSS PaaS and DevOps
Stars: ✭ 49 (-3.92%)
Mutual labels:  mern-stack
AmigoChat-Realtime-Chat-Application
AmigoChat is a responsive real-time chat application built on MERN Stack and Socket io.
Stars: ✭ 22 (-56.86%)
Mutual labels:  mern-stack
Coding-Ninjas-Full-Stack-Web-Development
It contains all the files I created during the MERN full stack web development course with coding ninjas
Stars: ✭ 108 (+111.76%)
Mutual labels:  mern-stack
Shopping-Cart-MERN
💸 Simple Online Shopping Cart made with the MERN Stack
Stars: ✭ 34 (-33.33%)
Mutual labels:  mern-stack
mern-stack-application
A MERN stack e-commerce website.
Stars: ✭ 45 (-11.76%)
Mutual labels:  mern-stack
chat-app
MERN Stack Based Chat Application
Stars: ✭ 231 (+352.94%)
Mutual labels:  mern-stack
Elemento
Elemento/ Customizable Portfolio is a website that aims to help people make a fully functional static website in a short amount of time without relying on web developers and that too with very little prior programming experience. This project was started under PSoC (PClub Summer of Code) .
Stars: ✭ 17 (-66.67%)
Mutual labels:  mern-stack

CI Testing code style: prettier license

mern-logo

MERN Stack with Docker

MongoDB - Express - React - Redux - React Native - NodeJS

MERN stack is intended to provide a starting point for building full-stack JavaScript applications, including dynamic web and mobile apps. The stack is made of MongoDB, Express, React, Redux, React Native and NodeJS.

mern-workflow

Demo

Project Breakdown

1. API Server

NOTE: The full API documentation can be found here

2. React Client

3. React Native - Mobile

  • Directory mobile
  • Created by using react-native-cli. If you want to use Expo, please check out expo branch and see docs here
  • Todo:
    • Redux store - react-redux
    • Router - react-navigation
    • Material design - react-native-paper
    • Authentication screens
      • Sign up screen
      • Sign in screen with email, Facebook or Google account
      • Request password reset email screen
      • Request verification email screen
      • Settings screen

4. Nginx Proxy

5. CI and CD

  • Directory .github/workflows
  • Todo:
    • Testing workflow
    • Building and deploying workflow

Getting started

1. Clone the mern-stack repository

If you want to use Expo for developing mobile app, please check out the expo branch and see instructions here

git clone https://github.com/t-ho/mern-stack.git
cd mern-stack
cp .env.example .env
cp client/.env.example client/.env
cp mobile/.env.example mobile/.env
# Edit all three .env files to meet your requirements

2. Install package dependencies

In the root directory, run:

npm install

3. Start development servers

To start server, client, and mobile, run:

# In the root directory (mern):
npm start
# Server API is running at http://localhost:SERVER_PORT (http://localhost:8861 by default)
# Web client is running at http://localhost:PORT (http://localhost:3000 by default)
# Mobile - Expo DevTools is running at http://localhost:19002

NOTE:

  • For the sake of simplicity, we use free service ngrok to create a public API URL for mobile development. The downside of this approach is that the public URL is only available for 8 hours, so we need to restart the npm process every 8 hours.
  • After 8 hours, the mobile process will be terminated, and a warning message will be displayed in your terminal to remind you to restart npm process.

To restart npm process (If you don't start the mobile development process, ignore this step):

# In your current terminal, press Ctrl + C to exit. Then run
npm start # start server, client and mobile dev process
# or
npm run server:mobile # start server and mobile dev process

Or to start server and client only, run:

# In the root directory (mern):
npm run server:client
# Server API is running at http://localhost:SERVER_PORT (http://localhost:8861 by default)
# Web client is running at http://localhost:PORT (http://localhost:3000 by default)

Or to start server and mobile only, run:

# In the root directory (mern):
npm run server:mobile
# Server API is running at http://localhost:SERVER_PORT (http://localhost:8861 by default)

4. Run the mobile app in your emulator/simulator

cd mobile
npx react-native run-android
# or
npx react-native run-ios

5. Run the mobile app on your mobile devices

  • Please read the documenatation here

6. Debug mobile app with react-native-debugger

  • Install react-native-debugger.
  • Open React Native Debugger window instance with port 19001 (Debugger > New Window).
  • Enable Debugging mode on your iOS simulator or Android emulator.

7. Debug web app with Redux DevTools

8. Docker

You can start the MERN stack (server and client only) using docker-compose:

Development mode

git clone https://github.com/t-ho/mern-stack.git
cd mern-stack
cp .env.example .env
cp client/.env.example client/.env

# Edit the .env file to meet your requirements
docker-compose up
# The mongoDB service listen on port 27018

The nginx-proxy server will listen on port 8080 (NGINX_PROXY_PORT) by default.

Production mode

git clone https://github.com/t-ho/mern-stack.git
cd mern-stack
cp .env.example .env.prod

# Edit the .env.prod file to meet your requirements
docker-compose -f docker-compose.prod.yml  --env-file ./.env.prod up -d

Testing

In the root (mern-stack) directory, run:

npm run test

Testing frameworks:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].