Giter Site home page Giter Site logo

liopun / mern-stack-front-to-back Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webmakaka/mern-stack-front-to-back

0.0 1.0 0.0 5.54 MB

[REACT, NODE, MONGO] [Brad Traversy] MERN Stack Front To Back: Full Stack React, Redux & Node.js [2018, ENG]

JavaScript 98.09% HTML 1.42% CSS 0.49%

mern-stack-front-to-back's Introduction

[Brad Traversy] MERN Stack Front To Back: Full Stack React, Redux & Node.js [2018, ENG]

Original src:
https://github.com/bradtraversy/devconnector


Brad made a new version of this course in 2019

Original src v2:
https://github.com/bradtraversy/devconnector_2.0

My src v2:
https://github.com/marley-nodejs/MERN-Stack-Front-To-Back-v2.0




01 Introduction


Host

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty

$ docker -v
Docker version 18.03.0-ce, build 0520e24

Inside container:


$ node -v
v9.11.1

$ npm -v
6.0.1

Final project packages


$ npm list -g --depth=0
/usr/local/lib
+-- [email protected]
`-- [email protected]



Visual Studio Code Settings:

{
    "editor.fontSize": 26,
    "editor.tabSize": 2,
    "editor.wordWrap": "on",
    "terminal.integrated.fontSize": 26,
    "emmet.includeLanguages": {
        "javascript": "javascriptreact"
    },
    "emmet.syntaxProfiles": {
        "javascript": "jsx",
        "javascript": "html"
    },
    "editor.formatOnSave": true,
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 10000,
    "prettier.singleQuote": true
}

Visual Studio Code Plugins:

  • ES7 React/Redux/React-Native/JS snippets
  • Bracket Pair Colorizer
  • Prettier formatter for Visual Studio Code
  • Live Server
  • Node.js Modules Intellisense

Chrome extensions:

  • React Developer Tools
  • Redux Developer Tools
  • Allow-Control-Allow-Origin

02 Basic Express Setup


005 MongoDB Setup With mLab


006 Install Dependencies Basic Server Setup

$ cd /project/
$ npm init -y

$ npm install --save express mongoose passport passport-jwt jsonwebtoken body-parser bcryptjs validator

$ npm install --save-dev nodemon

$ npm run server

007 Connecting To MongoDB With Mongoose


008 Route Files With Express Router


03 User API Routes JWT Authentication


009 Creating The User Model


010 User Registration Postman

https://github.com/emerleite/node-gravatar

$ npm install --save gravatar

Application


011 Email Password Login


Application


012 Creating The JWT


Application


013 Passport JWT Authentication Strategy

https://github.com/themikenicholson/passport-jwt


Application


014 Validation Handlers - 1

https://github.com/chriso/validator.js/


Application


015 Validation Handlers - 2


Application


Application


Application


04 Profile API Routes


016 Aside - Front End Visual


017 Creating The Profile Model


018 Current User Profile Route


Application


019 Create Update Profile Routes


020 Profile Field Validations


Application


Application


with
.populate("user", ["name", "avatar"])

Application


021 More Profile API Routes


Application


022 Add Experience Education Routes


Application


Application


023 Delete Education Experience Routes


05 Post API Routes


024 Creating The Post Model


025 Post Create Route


Application


026 Get Delete Post Routes


Application


Application


Application


027 Post Like Unlike Routes


Application


Application


028 Add Remove Comment Routes


Application


Application


06 Getting Started With React The Frontend


029 A Look At The Bootstrap Theme UI


030 Implementing React

# npm install -g create-react-app
# su - nodejs

$ cd /project/
$ create-react-app client

$ npm install --save-dev concurrently

$ npm run dev

Application


Application


031 Bootstrap Assets Setup

https://fontawesome.com/get-started


032 Basic Layout


Application


07 React Router Component State


033 React Router Setup (v4)

# cd client/
# npm install --save react-router-dom

Application


034 Creating The Register Form With State


Application


035 Creating The Login Form With State


Application


036 Testing Registration With Our Form - No Redux Yet

# cd client/
# npm install --save axios

Application


037 Error Handling Display

# cd client/
# npm install --save classnames

Application


08 Redux Authentication


038 Why We Need Redux


039 Redux Store Chrome Extension Setup

# cd client/
# npm install --save redux react-redux redux-thunk

Application


040 Redux Action Reducer Workflow Example


041 Registration The Error Reducer


042 Redux Login Action Set Current User

# npm install --save jwt-decode

043 Login Form Functionality


044 Logout Conditional Navbar Links


09 Dashboard Profile State - Part 1


045 TextFieldGroupInput Component


046 Profile Reducer Get Current Profile


047 Spinner Component Dashboard Start


048 Private Route Setup

https://tylermcginnis.com/react-router-protected-routes-authentication/


049 CreateProfile Component Route


Application


050 Form Field Components


051 Create Profile Form


Application


052 Create Profile Functionality


10 Dashboard Profile State - Part 2


053 Profile Actions Component Delete Account


Application


054 Edit Profile Component


Application


055 Add Experience Form


Application


056 Add Experience Functionality


057 Add Education Form Functionality


Application


058 Dashboard Experience Display Delete


# cd client/
# npm install --save moment react-moment

Application


059 Dashboard Education Display Delete


Application


11 Profile Display


060 Profiles Component getProfiles Action


Application


061 Profile Items


Application


062 Profile By Handle Sub Components


Application


063 Profile Header


Application


064 Profile About Credentials


Application


065 Profile Github Touch Ups


12 Posts Comments


066 Post State addPost Action


067 Posts Post Form Component


Application


068 getPosts Action PostFeed Component


069 Post Item Component


Application


070 Delete Like Unlike Posts


Application


071 Single Post Display


Application


072 Comment Form Component Action


Application


073 Comment Display Delete


Application


13 Prepare Deploy


074 Securing Our Keys


075 Heroku Setup


076 Post Build Deployment

$ cd client/
$ npm run build

# npm install -g serve
$ serve -s build -l 8080

Marley

jsdev.org

mern-stack-front-to-back's People

Contributors

webmakaka avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.