[Udemy] MERN Stack Front To Back: Full Stack React, Redux & Node.js [2018, ENG]
Original src:
https://github.com/bradtraversy/devconnector
$ node -v
v9.11.1
$ npm -v
6.0.1
$ npm list -g --depth=0
/usr/local/lib
+-- create-react-app@1.5.2
`-- npm@6.0.1
$ npm list --depth=0
client@0.1.0 /project/client
+-- axios@0.18.0
+-- classnames@2.2.5
+-- jwt-decode@2.2.0
+-- moment@2.22.1
+-- react@16.3.2
+-- react-dom@16.3.2
+-- react-moment@0.7.0
+-- react-redux@5.0.7
+-- react-router-dom@4.2.2
+-- react-scripts@1.1.4
+-- redux@4.0.0
`-- redux-thunk@2.2.0
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"
},
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 10000
}
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
$ 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
https://github.com/emerleite/node-gravatar
$ npm install --save gravatar
https://github.com/themikenicholson/passport-jwt
https://github.com/chriso/validator.js/
with
.populate("user", ["name", "avatar"])
# npm install -g create-react-app
# su - nodejs
$ cd /project/
$ create-react-app client
$ npm install --save-dev concurrently
$ npm run dev
https://fontawesome.com/get-started
# cd client/
# npm install --save react-router-dom
# cd client/
# npm install --save axios
# cd client/
# npm install --save classnames
# cd client/
# npm install --save redux react-redux redux-thunk
# npm install --save jwt-decode
https://tylermcginnis.com/react-router-protected-routes-authentication/
# cd client/
# npm install --save moment react-moment
$ cd client/
$ npm run build
Marley