├── .gitignore ├── Procfile ├── README.md ├── app.js ├── package.json ├── public ├── css │ └── styles.css ├── favicon.png └── images │ └── blogwebsite.png ├── src ├── controllers │ ├── authController.js │ └── blogController.js ├── middleware │ ├── auth.js │ └── userAuth.js ├── models │ ├── Post.js │ └── User.js └── routes │ ├── auth.js │ ├── authRoutes.js │ ├── blog.js │ └── blogRoutes.js └── views ├── about.ejs ├── compose.ejs ├── contact.ejs ├── delete.ejs ├── edit.ejs ├── error.ejs ├── home.ejs ├── login.ejs ├── partials ├── footer.ejs └── header.ejs ├── post.ejs └── signup.ejs /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | .env -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: node app.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/README.md -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/app.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/package.json -------------------------------------------------------------------------------- /public/css/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/public/css/styles.css -------------------------------------------------------------------------------- /public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/public/favicon.png -------------------------------------------------------------------------------- /public/images/blogwebsite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/public/images/blogwebsite.png -------------------------------------------------------------------------------- /src/controllers/authController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/controllers/authController.js -------------------------------------------------------------------------------- /src/controllers/blogController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/controllers/blogController.js -------------------------------------------------------------------------------- /src/middleware/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/middleware/auth.js -------------------------------------------------------------------------------- /src/middleware/userAuth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/middleware/userAuth.js -------------------------------------------------------------------------------- /src/models/Post.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/models/Post.js -------------------------------------------------------------------------------- /src/models/User.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/models/User.js -------------------------------------------------------------------------------- /src/routes/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/routes/auth.js -------------------------------------------------------------------------------- /src/routes/authRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/routes/authRoutes.js -------------------------------------------------------------------------------- /src/routes/blog.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/routes/blog.js -------------------------------------------------------------------------------- /src/routes/blogRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/src/routes/blogRoutes.js -------------------------------------------------------------------------------- /views/about.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/about.ejs -------------------------------------------------------------------------------- /views/compose.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/compose.ejs -------------------------------------------------------------------------------- /views/contact.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/contact.ejs -------------------------------------------------------------------------------- /views/delete.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/delete.ejs -------------------------------------------------------------------------------- /views/edit.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/edit.ejs -------------------------------------------------------------------------------- /views/error.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/error.ejs -------------------------------------------------------------------------------- /views/home.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/home.ejs -------------------------------------------------------------------------------- /views/login.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/login.ejs -------------------------------------------------------------------------------- /views/partials/footer.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/partials/footer.ejs -------------------------------------------------------------------------------- /views/partials/header.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/partials/header.ejs -------------------------------------------------------------------------------- /views/post.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/post.ejs -------------------------------------------------------------------------------- /views/signup.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssahibsingh/blog-website/HEAD/views/signup.ejs --------------------------------------------------------------------------------