Skip to content

saurav90/mern-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code for MERN tutorial.

SIMPLE EXERCISE TRACKER USING MONGODB-EXPRESS-REACT-NODE

Using Mongo DB Atlas Account.

Add your connection URI at backend/.env file

Installation Instructions

git clone https://github.com/saurav90/mern-stack.git

Installing node-modules for frontend

$ cd mern-stack
$ npm install

Installing node-modules for backendInstallation

$ cd backend
$ npm install

Setting Up MongoDB Atlas Connection

Go to backend directory and paste your atlas connection URI there.
ATLAS_URI = --Add Your Atlas Connection URL here -- (without quotes)
If you are using mongoDB in your local machine then use mongodb://localhost:27017/test.
For example: ATLAS_URI = mongodb://localhost:27017/test

Running the Application

$ npm run dev

This will start the backend express server and frontend react-scripts concurrently. You can also use two different terminals to start the frontend and backend separately

type npm start on mern-stack directory in one terminal and
type nodemon server on backend directory in another terminal

About

Simple MERN Source Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published