Skip to content

Sooraj-s-98/Blog_App_Nextjs_MongoDB

Repository files navigation

Blog App ❤️(Next.js + MongoDB)

🚀 Check out the demo 🚀

Add MongoDB Atlas Search

Add MongoDB atlas index search See this. mongosea

Environmental variables

Environmental variables in this project include:

  • MONGODB_URI The MongoDB Connection String (with credentials and database name)
  • WEB_URI The URL of your web app.
  • CLOUDINARY_URL (optional, Cloudinary only) Cloudinary environment variable for configuration. See this.
  • NODEMAILER_CONFIG (optional, if using nodemailer only) JSON stringified nodemailer config. eg. {"service":"Gmail","auth":{"user":"sooraj@gmail.com","pass":"sgbxGJjklmYunbbcGHJaSDROpLKg"}}

Development

Start the development server by running yarn dev or npm run dev. Getting started by create a .env.local file with the above variables. See Environment Variables.

Deployment

This project can be deployed anywhere Next.js can be deployed. Make sure to set the environment variables using the options provided by your cloud/hosting providers.

After building using npm run build, simply start the server using npm run start.

You can also deploy this with serverless providers given the correct setup.

Guide

🔒 Authentication and Account

  • Session-based authentication (Passport.js)
  • Sign up/Log in/Sign out API
  • Authentication via email/password
  • Authentication via OAuth (Google, Facebook, etc.)
  • Email verification
  • Password change
  • Password reset via email

👩👨 Profile

  • Profile picture, username, name, bio, email
  • Update user profile

👀 Social

  • View others' profiles
  • Posts and comments
  • Search posts