Coder Social home page Coder Social logo

praful-87 / blog-app-mern Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 229 KB

The objective of this project is to create a blog app where users can Read the blogs , Create blogs, comment on blog they like

Home Page: https://rightous.netlify.app/

HTML 1.32% JavaScript 98.21% CSS 0.47%
bcrypt chakra-ui cloudinary cors css html5 javascript react-icons react-redux react-router-dom-v6

blog-app-mern's Introduction

Notify me.

Name of this project is Notify me.

The objective of this project is to create a blog app where user can Read the blogs , Create blogs, comment on blog they like

Visit below link too see demo

Demo

Features

  • Read blogs without login
  • Register on website / Signup
  • Login to account
  • See account details
  • Upload profile picture
  • Update profile
  • Create blog
  • Upload image for blog
  • Update blog
  • Delete blog
  • Give comment on the blog
  • Users can't make changes to others' post
  • User cannot create post without loging in
  • Light/dark mode toggle

Tech Stack

Client

  • html 5
  • css 3
  • javascript
  • react
  • redux
  • react-router-dom
  • react-icons
  • react-redux
  • redux-thunk
  • chakra-ui

Server

  • bcrypt
  • cloudinary
  • cors
  • dotenv
  • express
  • jsonwebtoken
  • mongoose
  • multer
  • nodemon

Installation

Install my-project by cloning the repository

  cd backend
  npm Install
  cd frontend
  npm Install

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

Backend-End environment Variables

  • DB_URL your mongoDb ATLAS url

  • PRIVATE_KEY to hash the password

  • Cloudinary Variables

  • CLOUD_NAME provided by Cloudinary

  • API_KAY provided by Cloudinary

  • API_SECRET provided by Cloudinary

API Reference

Get all items

  GET /blog
Parameter Type Description
NA NA No API_KEY Required

Get item by blog_Id

  GET /blog/${blog_id}
Parameter Type Description
blog_id ObjectId Required. Id of item to fetch

Create post

  POST /blog
Parameter Type Description
user_id ObjectId Required. to create post
title string Required. to create post
blog string Required. Description to create post
image_blog file Required. to create post

Update item by blog_Id

  PATCH /blog/update/${blog_id}
Parameter Type Description
blog_id ObjectId Required. Id of item update
payload stringified object Required. object to update

Delete item by blog_Id

  DELETE /blog/delete/${blog_id}
Parameter Type Description
blog_id ObjectId Required. Id of item to fetch

Get all comments on perticular post by blog_Id

  GET /comment/${blog_id}
Parameter Type Description
blog_id ObjectId Required. Id of item to all comments

post comment

  POST /comment
Parameter Type Description
user_id ObjectId Required. to create comment
comment string Required. to create comment
blog_id ObjectId Required. to create comment

Run Locally

Clone the project

  git clone https://github.com/Praful-87/blog-app-mern.git

Go to the project directory

  cd backend
  cd frontend

Install dependencies

  npm install

Start the server

  npm run server

Start the developement server ( localhost )

  npm run start

Deployment

To deploy this project

Go to the frontend directory

  cd frontend
  npm run build
  deploy the build folder on netlify

Screenshots

App with Loged In

App Screenshot

App with Loged In for mobile view

App Screenshot

App without Loged In

App Screenshot

App without Loged In for mobile view

App Screenshot

Acknowledgements

Authors


Logo

blog-app-mern's People

Contributors

praful-87 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.