Basic MERN Stack App
Front-End - React + Redux
Back-End - Node.js, Express.js & MongoDB
To run it locally -
Steps to run in development mode:-
- Fork the repo and clone it.
- Switch to
development
branch for running in development mode. - Make sure you have
yarn
Node.js & MongoDB installed in your system. - [Only once] Run (from the root)
yarn install
andcd client && yarn install
. - Open two terminal windows (one for running Server and other for the UI).
- Start MongoDB service with
sudo service mongod start
. - Run
yarn server
to start the server. By default it will run onport 5000
. - For UI run
yarn client
and it will open on a new tab onport 3000
. - Go to
http://localhost:3000
to see the application running.
Steps to run in production mode:-
Follow steps 1 & 3-7 for running in production mode.
This time go to http://localhost:5000
to see the application running.