GithubHelp home page GithubHelp logo

basic-blog-project's Introduction

14th Assignment

মডিউল ১৮ এর এসাইনমেন্ট

Assignment: Basic Full-Stack Blog Project using MERN

Task 1: Backend Setup using Express.js and MongoDB

  1. Set up a new Node.js project and install the required dependencies (express, mongoose, etc.).
  2. Create an Express.js server with routes for CRUD operations on blog posts.
  3. Define a Mongoose schema for the blog posts with fields like title, content, author, and createdAt.

Implement API routes for:

  1. Fetching all blog posts
  2. Fetching a single blog post by ID
  3. Creating a new blog post
  4. Updating an existing blog post
  5. Deleting a blog post

Task 2: Frontend Setup using React

  1. Set up a new React project using create-react-app.

Create components for:

  1. A blog post list to display all available blog posts
  2. A single blog post view
  3. A form to add/edit blog posts

Use React Router to handle different routes:

  1. / for displaying the list of blog posts
  2. /post/:id for displaying a single blog post
  3. /create for adding a new blog post
  4. /edit/:id for editing an existing blog post

Task 3: Connecting Frontend and Backend

  1. Utilize Axios or another HTTP library to make API requests from the frontend to the backend.
  2. Fetch all blog posts and display them in the blog post list component.
  3. Implement functionality to view a single blog post and its details.
  4. Create forms to add new blog posts and edit existing ones.

Task 4: Styling and UI Enhancement

  1. Apply basic styling to your components using CSS or a CSS framework like Bootstrap or Tailwind CSS.
  2. Ensure that the user interface is user-friendly and responsive.

Task 5:

  1. Implement user authentication and allow only authenticated users to create, edit, and delete blog posts.
  2. Add comment functionality to the blog posts.
  3. Implement a search feature to search for blog posts based on titles or keywords.

Submission Guidelines

Submission Instruction :

  1. Please create a note.txt file with in the GitHub repository.
  2. Please deploy your app
  3. Please include your deployed version link, server site GitHub repository link, client side repository link in the note.txt file
  4. Please submit your GitHub repository link.

basic-blog-project's People

Contributors

mdsaymun 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.