Social App Posts Management System
Project Overview
The Social App Posts Management System is a Node.js-based application that allows users to interact with posts from a MongoDB database. The application fetches posts from the JSONPlaceholder API and saves them to the MongoDB database. It provides users with a simple interface to view, add, edit, and delete posts. The backend is powered by Express.js, and the front-end uses EJS for rendering views. MongoDB is used to store post data locally.
Key Features:
- Fetch Posts from an external API and save them to MongoDB.
- View All Posts on a page with options to edit or delete.
- Edit Post functionality to update the title and description.
- Add New Post functionality to add a post to the database.
- Validation: Form validation for post title and description.
Upload Date - 16/11/2024
Project Overview
The Social App Posts Management System is a Node.js-based application that interacts with posts stored in a MongoDB database. The application fetches posts from the JSONPlaceholder API and saves them into a local MongoDB database. The app allows users to:
- View, edit, and delete posts.
- Add new posts to the database.
- Includes form validation for creating and editing posts.
Technologies Used:
- Node.js - Server-side runtime.
- Express.js - Web framework for Node.js.
- MongoDB - Database to store posts.
- Mongoose - ODM for MongoDB.
- EJS - Templating engine to render views.
-
Axios - To fetch data from the JSON API.
- Node.js - JavaScript runtime for building the server.
- Express.js - Web framework for building the app.
- MongoDB - Database for storing posts.
- Mongoose - ORM to interact with MongoDB.
- EJS - Templating engine for rendering views.
- Axios - HTTP client for fetching posts from an external API.
Features:
- Fetch Posts from JSONPlaceholder and store in the local MongoDB database.
- View All Posts: List all posts with options to edit or delete them.
- Create New Post: Add a new post through a form.
- Edit Post: Modify title and description of existing posts.
- Delete Post: Remove posts from the database.
- Form Validation: Ensures fields are filled before submitting a post.
Project Screenshots
Welcome Page
Viewing Posts
Editing Posts
Create New Post
MongoDB Data View
MongoDB Data View