MERN Boilerplate with User Authentication
A Boilerplate for starting MERN applications with prebuilt Signin-Signup functionality using JWT token authentication. Clone the repo and start coding. The frontend uses Material-UI which offers great React components for faster and easier web development.
Install Node.js and npm using the link above. Follow instructions on their respecive websites. Npm is included with Node.js. Setup MongoDB locally or on MongoDB Atlas and get the connection string. This connection string has to be pasted here for mongoose to connect to the database.
Clone the repository
git clone https://github.com/amurto/mern-starter.git
Install all the dependencies on backend server
cd backend
npm install
Install all the dependencies on frontend
cd frontend
npm install
Run the backend server on port 5000
cd backend
npm start
Run the frontend webapp
cd frontend
npm start
Open a web browser and go to
http://localhost:3000