Code Monkey home page Code Monkey logo

imt-care-assignment's Introduction

IMT-care-assignment-Blog App

This is a a full-featured blog application that allows users to view a list of blog posts, read individual blog posts, create new blog posts, and interact with the content using Next.js and React.

Structure : frontend/frontend:code related to fortend (next js app,react-icons,quill). backend:code related to backend (nodejs mongodb express).

frontend run command: npm run dev Home page : http://localhost:3000 -Render all blogs. - server-side rendering (getServerSideProps) Createpost : http://localhost:3000/createPost - Here user can create new blog. Singleblogpage : http://localhost:3000/content/id - Here user can get some more detail about particular blog and user can edit and delete only his own blog but admin can edit and delete any blog and reader can't see edit and delete icons.- server-side rendering (getServerSideProps) Login page : http://localhost:3000/login - Here user can login itself. Register page : http://localhost:3000/register - Here new user can create his own account. Edit page : http://localhost:3000/Editpage/id - Here users can update their blog details. Navbar component : component/Navbar.

backend run command: npm run server user login route : http://localhost:3005/login user register route : http://localhost:3005/register blog post route: http://localhost:3005/blog All blog get route : http://localhost:3005/blog/?title=query; Single blog get route : http://localhost:3005/blog/id Blog patch: http://localhost:3005/blog/id Blog delete route : http://localhost:3005/blog/id Blog comment route : http://localhost:3005/blogcomment/id

Features

  1. User Authentication (admin,reader,user) after login user will redirect to home page.
  2. Post Blog (quill editor)
  3. Delete the Blog by its creator or admin.
  4. Updation the Blog by its creator or admin.(quill editor)
  5. Comment feature(user can comment on particular blog)
  6. Pagination
  7. Search by title
  8. fetch All blogs at home page.
  9. form validation.
  10. logout functionality.
  11. Navbar to connect other pages.
  12. some basic styling.

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.