├── .gitignore ├── client-assets.rar ├── client ├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public │ ├── _redirects │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt ├── src │ ├── App.css │ ├── App.js │ ├── App.test.js │ ├── assets │ │ ├── landing.jpg │ │ ├── logo.svg │ │ ├── logout.svg │ │ ├── pencil.svg │ │ ├── play-btn.svg │ │ ├── plus-circle-fill.svg │ │ └── trash.svg │ ├── components │ │ ├── auth │ │ │ ├── LoginForm.js │ │ │ └── RegisterForm.js │ │ ├── layout │ │ │ ├── AlertMessage.js │ │ │ ├── Landing.js │ │ │ └── NavbarMenu.js │ │ ├── posts │ │ │ ├── ActionButtons.js │ │ │ ├── AddPostModal.js │ │ │ ├── SinglePost.js │ │ │ └── UpdatePostModal.js │ │ └── routing │ │ │ └── ProtectedRoute.js │ ├── contexts │ │ ├── AuthContext.js │ │ ├── PostContext.js │ │ └── constants.js │ ├── index.css │ ├── index.js │ ├── logo.svg │ ├── reducers │ │ ├── authReducer.js │ │ └── postReducer.js │ ├── reportWebVitals.js │ ├── setupTests.js │ ├── utils │ │ └── setAuthToken.js │ └── views │ │ ├── About.js │ │ ├── Auth.js │ │ └── Dashboard.js └── yarn.lock └── server ├── .env.example ├── Procfile ├── index.js ├── middleware └── auth.js ├── models ├── Post.js └── User.js ├── package-lock.json ├── package.json ├── request.http └── routes ├── auth.js └── post.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/.gitignore -------------------------------------------------------------------------------- /client-assets.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client-assets.rar -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/.gitignore -------------------------------------------------------------------------------- /client/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/README.md -------------------------------------------------------------------------------- /client/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/package-lock.json -------------------------------------------------------------------------------- /client/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/package.json -------------------------------------------------------------------------------- /client/public/_redirects: -------------------------------------------------------------------------------- 1 | /* /index.html 200 -------------------------------------------------------------------------------- /client/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/public/favicon.ico -------------------------------------------------------------------------------- /client/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/public/index.html -------------------------------------------------------------------------------- /client/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/public/logo192.png -------------------------------------------------------------------------------- /client/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/public/logo512.png -------------------------------------------------------------------------------- /client/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/public/manifest.json -------------------------------------------------------------------------------- /client/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/public/robots.txt -------------------------------------------------------------------------------- /client/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/App.css -------------------------------------------------------------------------------- /client/src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/App.js -------------------------------------------------------------------------------- /client/src/App.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/App.test.js -------------------------------------------------------------------------------- /client/src/assets/landing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/assets/landing.jpg -------------------------------------------------------------------------------- /client/src/assets/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/assets/logo.svg -------------------------------------------------------------------------------- /client/src/assets/logout.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/assets/logout.svg -------------------------------------------------------------------------------- /client/src/assets/pencil.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/assets/pencil.svg -------------------------------------------------------------------------------- /client/src/assets/play-btn.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/assets/play-btn.svg -------------------------------------------------------------------------------- /client/src/assets/plus-circle-fill.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/assets/plus-circle-fill.svg -------------------------------------------------------------------------------- /client/src/assets/trash.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/assets/trash.svg -------------------------------------------------------------------------------- /client/src/components/auth/LoginForm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/auth/LoginForm.js -------------------------------------------------------------------------------- /client/src/components/auth/RegisterForm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/auth/RegisterForm.js -------------------------------------------------------------------------------- /client/src/components/layout/AlertMessage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/layout/AlertMessage.js -------------------------------------------------------------------------------- /client/src/components/layout/Landing.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/layout/Landing.js -------------------------------------------------------------------------------- /client/src/components/layout/NavbarMenu.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/layout/NavbarMenu.js -------------------------------------------------------------------------------- /client/src/components/posts/ActionButtons.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/posts/ActionButtons.js -------------------------------------------------------------------------------- /client/src/components/posts/AddPostModal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/posts/AddPostModal.js -------------------------------------------------------------------------------- /client/src/components/posts/SinglePost.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/posts/SinglePost.js -------------------------------------------------------------------------------- /client/src/components/posts/UpdatePostModal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/posts/UpdatePostModal.js -------------------------------------------------------------------------------- /client/src/components/routing/ProtectedRoute.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/components/routing/ProtectedRoute.js -------------------------------------------------------------------------------- /client/src/contexts/AuthContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/contexts/AuthContext.js -------------------------------------------------------------------------------- /client/src/contexts/PostContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/contexts/PostContext.js -------------------------------------------------------------------------------- /client/src/contexts/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/contexts/constants.js -------------------------------------------------------------------------------- /client/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/index.css -------------------------------------------------------------------------------- /client/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/index.js -------------------------------------------------------------------------------- /client/src/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/logo.svg -------------------------------------------------------------------------------- /client/src/reducers/authReducer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/reducers/authReducer.js -------------------------------------------------------------------------------- /client/src/reducers/postReducer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/reducers/postReducer.js -------------------------------------------------------------------------------- /client/src/reportWebVitals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/reportWebVitals.js -------------------------------------------------------------------------------- /client/src/setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/setupTests.js -------------------------------------------------------------------------------- /client/src/utils/setAuthToken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/utils/setAuthToken.js -------------------------------------------------------------------------------- /client/src/views/About.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/views/About.js -------------------------------------------------------------------------------- /client/src/views/Auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/views/Auth.js -------------------------------------------------------------------------------- /client/src/views/Dashboard.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/src/views/Dashboard.js -------------------------------------------------------------------------------- /client/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/client/yarn.lock -------------------------------------------------------------------------------- /server/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/.env.example -------------------------------------------------------------------------------- /server/Procfile: -------------------------------------------------------------------------------- 1 | web: npm run start -------------------------------------------------------------------------------- /server/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/index.js -------------------------------------------------------------------------------- /server/middleware/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/middleware/auth.js -------------------------------------------------------------------------------- /server/models/Post.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/models/Post.js -------------------------------------------------------------------------------- /server/models/User.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/models/User.js -------------------------------------------------------------------------------- /server/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/package-lock.json -------------------------------------------------------------------------------- /server/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/package.json -------------------------------------------------------------------------------- /server/request.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/request.http -------------------------------------------------------------------------------- /server/routes/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/routes/auth.js -------------------------------------------------------------------------------- /server/routes/post.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lpredrum136/mern-tutorial-learnit/HEAD/server/routes/post.js --------------------------------------------------------------------------------