├── .docker ├── client │ └── Dockerfile └── server │ └── Dockerfile ├── .gitignore ├── LICENSE.md ├── README.md ├── client ├── .dockerignore ├── .env ├── .gitignore ├── README.md ├── jsconfig.json ├── package.json ├── postcss.config.js ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt ├── src │ ├── assets │ │ └── css │ │ │ ├── index.css │ │ │ └── tailwind.css │ ├── components │ │ ├── AuthenticatedRoute.jsx │ │ ├── Button.jsx │ │ ├── Container.jsx │ │ ├── Markdown.jsx │ │ └── Navbar.jsx │ ├── contexts │ │ └── UserContextProvider.jsx │ ├── index.js │ ├── pages │ │ ├── NotFound.jsx │ │ ├── article │ │ │ ├── Article.jsx │ │ │ ├── CreateArticle.jsx │ │ │ └── index.js │ │ ├── auth │ │ │ ├── Login.jsx │ │ │ ├── Register.jsx │ │ │ └── index.js │ │ └── home │ │ │ ├── Home.jsx │ │ │ ├── components │ │ │ └── ArticleCard.jsx │ │ │ └── index.js │ ├── reducers │ │ ├── authReducer.js │ │ └── types.js │ ├── router.jsx │ ├── serviceWorker.js │ └── services │ │ ├── api.js │ │ └── auth.js ├── tailwind.config.js └── yarn.lock ├── docker-compose.yml ├── screenshot.png └── server ├── .dockerignore ├── .env.example ├── .gitignore ├── .prettierrc ├── nodemon.json ├── package.json ├── src ├── config.ts ├── controllers │ ├── articles.ts │ ├── auth.ts │ └── users.ts ├── database.ts ├── middlewares │ ├── authorized.ts │ └── joi.ts ├── models │ ├── Article.ts │ ├── PaginatedModel.ts │ └── User.ts ├── routes.ts ├── server.ts └── utils │ ├── randomNumber.ts │ └── segments.ts ├── tsconfig.json └── yarn.lock /.docker/client/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/.docker/client/Dockerfile -------------------------------------------------------------------------------- /.docker/server/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/.docker/server/Dockerfile -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | mongo-volume 2 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/README.md -------------------------------------------------------------------------------- /client/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/.dockerignore -------------------------------------------------------------------------------- /client/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_BASE_API_URL=http://localhost:5000 -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/.gitignore -------------------------------------------------------------------------------- /client/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/README.md -------------------------------------------------------------------------------- /client/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": {} 3 | } -------------------------------------------------------------------------------- /client/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/package.json -------------------------------------------------------------------------------- /client/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/postcss.config.js -------------------------------------------------------------------------------- /client/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/public/favicon.ico -------------------------------------------------------------------------------- /client/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/public/index.html -------------------------------------------------------------------------------- /client/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/public/logo192.png -------------------------------------------------------------------------------- /client/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/public/logo512.png -------------------------------------------------------------------------------- /client/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/public/manifest.json -------------------------------------------------------------------------------- /client/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/public/robots.txt -------------------------------------------------------------------------------- /client/src/assets/css/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/assets/css/index.css -------------------------------------------------------------------------------- /client/src/assets/css/tailwind.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/assets/css/tailwind.css -------------------------------------------------------------------------------- /client/src/components/AuthenticatedRoute.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/components/AuthenticatedRoute.jsx -------------------------------------------------------------------------------- /client/src/components/Button.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/components/Button.jsx -------------------------------------------------------------------------------- /client/src/components/Container.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/components/Container.jsx -------------------------------------------------------------------------------- /client/src/components/Markdown.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/components/Markdown.jsx -------------------------------------------------------------------------------- /client/src/components/Navbar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/components/Navbar.jsx -------------------------------------------------------------------------------- /client/src/contexts/UserContextProvider.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/contexts/UserContextProvider.jsx -------------------------------------------------------------------------------- /client/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/index.js -------------------------------------------------------------------------------- /client/src/pages/NotFound.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/pages/NotFound.jsx -------------------------------------------------------------------------------- /client/src/pages/article/Article.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/pages/article/Article.jsx -------------------------------------------------------------------------------- /client/src/pages/article/CreateArticle.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/pages/article/CreateArticle.jsx -------------------------------------------------------------------------------- /client/src/pages/article/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/pages/article/index.js -------------------------------------------------------------------------------- /client/src/pages/auth/Login.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/pages/auth/Login.jsx -------------------------------------------------------------------------------- /client/src/pages/auth/Register.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/pages/auth/Register.jsx -------------------------------------------------------------------------------- /client/src/pages/auth/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/pages/auth/index.js -------------------------------------------------------------------------------- /client/src/pages/home/Home.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/pages/home/Home.jsx -------------------------------------------------------------------------------- /client/src/pages/home/components/ArticleCard.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/pages/home/components/ArticleCard.jsx -------------------------------------------------------------------------------- /client/src/pages/home/index.js: -------------------------------------------------------------------------------- 1 | export * from "./Home"; 2 | -------------------------------------------------------------------------------- /client/src/reducers/authReducer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/reducers/authReducer.js -------------------------------------------------------------------------------- /client/src/reducers/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/reducers/types.js -------------------------------------------------------------------------------- /client/src/router.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/router.jsx -------------------------------------------------------------------------------- /client/src/serviceWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/serviceWorker.js -------------------------------------------------------------------------------- /client/src/services/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/services/api.js -------------------------------------------------------------------------------- /client/src/services/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/src/services/auth.js -------------------------------------------------------------------------------- /client/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/tailwind.config.js -------------------------------------------------------------------------------- /client/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/client/yarn.lock -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/screenshot.png -------------------------------------------------------------------------------- /server/.dockerignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | node_modules 3 | -------------------------------------------------------------------------------- /server/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/.env.example -------------------------------------------------------------------------------- /server/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | 3 | .env 4 | 5 | node_modules 6 | 7 | dist -------------------------------------------------------------------------------- /server/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/.prettierrc -------------------------------------------------------------------------------- /server/nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/nodemon.json -------------------------------------------------------------------------------- /server/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/package.json -------------------------------------------------------------------------------- /server/src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/config.ts -------------------------------------------------------------------------------- /server/src/controllers/articles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/controllers/articles.ts -------------------------------------------------------------------------------- /server/src/controllers/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/controllers/auth.ts -------------------------------------------------------------------------------- /server/src/controllers/users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/controllers/users.ts -------------------------------------------------------------------------------- /server/src/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/database.ts -------------------------------------------------------------------------------- /server/src/middlewares/authorized.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/middlewares/authorized.ts -------------------------------------------------------------------------------- /server/src/middlewares/joi.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/middlewares/joi.ts -------------------------------------------------------------------------------- /server/src/models/Article.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/models/Article.ts -------------------------------------------------------------------------------- /server/src/models/PaginatedModel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/models/PaginatedModel.ts -------------------------------------------------------------------------------- /server/src/models/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/models/User.ts -------------------------------------------------------------------------------- /server/src/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/routes.ts -------------------------------------------------------------------------------- /server/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/server.ts -------------------------------------------------------------------------------- /server/src/utils/randomNumber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/utils/randomNumber.ts -------------------------------------------------------------------------------- /server/src/utils/segments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/src/utils/segments.ts -------------------------------------------------------------------------------- /server/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/tsconfig.json -------------------------------------------------------------------------------- /server/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HotPotatoC/mern-markdown-blog/HEAD/server/yarn.lock --------------------------------------------------------------------------------