Show Cards is a fun project showcasing posts fetched from an external API. The application provides a modern and responsive interface where you can browse, view details, and delete posts effortlessly. It's built with a React frontend, Express.js backend, and styled using Material-UI. 🚀
The project is deployed on Vercel and is live here:
Show Cards App 🚀
- 📝 Post Listing: View all posts in a neat and organized grid layout.
- 🔍 View Details: Click a post to explore its full content on a separate page.
- 🗑️ Delete Posts: Remove posts with a confirmation modal.
- 🌐 API Integration: Data fetched dynamically from JSONPlaceholder.
- 📱 Responsive Design: Works seamlessly on all screen sizes.
- ⚛️ React: For building a dynamic UI.
- 🧭 React Router: For smooth navigation.
- 🔗 Axios: For API requests.
- 🎨 Material-UI: For pre-styled, responsive components.
- 🌐 Express.js: For API routing and server logic.
- 🔗 Axios: To fetch data from external APIs.
- 🌍 Vercel: Hosting for both the frontend and backend.
Home.js: Displays posts in a grid layout with action buttons.ViewDetailsPage.js: A dedicated page to display post details.App.js: Entry point that defines application routes.
HomeRoute.js: Fetches all posts.DescriptionRoute.js: Fetches details for a specific post.DeleteRoute.js: Deletes a post by ID.
vercel.json: Configures deployment for Vercel.
- 🖥️ Node.js (v20+)
- 📦 npm or yarn (for package management)
-
Homepage:
- Posts are displayed in a grid format.
- Each post has two actions: "View Details" and "Delete".
-
View Details:
- Clicking "View Details" navigates to a new page displaying the full content of the post.
-
Delete Post:
- Clicking "Delete" opens a modal for confirmation. Once confirmed, the post is removed from the list.
-
Get All Posts:
GET /articles
Fetches all posts. -
Get Post Details:
GET /description?id=<post_id>
Fetches details of a specific post. -
Delete Post:
DELETE /articles/delete?id=<post_id>
Deletes a post by its ID.
- ⚛️ React
- 🌐 Express.js
- 🔗 Axios
- 🎨 Material-UI
- 🌍 JSONPlaceholder API
- 🚀 Vercel for deployment.