Skip to content

doubleInc/MERN_stack_beginner_tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN_stack_beginner_tutorial

This project was bootstrapped with Create React App.

Source

You can watch this video and follow along

Commands you will need to install/run

Note you will need to sign up for a mongoDB account:

MongoDB sign-up

(I created my cluster on AWS - Australia Region)

I recommend setting up the backend/ frontend in the order below:

BACKEND

  • npm init -y (creates the package.json file which will enable npm to run in the directory)

  • npm install express

  • npm install cors

  • npm install mongoose

  • npm install dotenv

  • npm install -g nodemon (NOTE: this will install nodemon onto your machine, this allows your node.js applications to restart when file changes in their directory are detected)

  • brew cask install insomnia (this is for testing requests towards your backend routes)

FRONTEND

Just run "npm install" in the root of the cloned repo and npm will take care of things for you based on the package.json file (in fact this would probably work for the backend stuff too)

Available Scripts

In the project directory, you can run: npm start npm build npm test npm eject

BACKEND: nodemon server (this starts and runs your backend server)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.5%
  • HTML 6.2%
  • CSS 3.3%