This is a FullStack Blog Web application built using the MERN Stack (MongoDB, Express, React, Node.js). It is designed to allow admin users to authenticate and manage blog posts. The admin can create, read, update, and delete posts through a secure and modern interface.
- Admin Authentication: Admin users are automatically generated and can log in to manage posts, with authentication secured using JWT (JSON Web Tokens). No registration page/component is provided, and admin credentials are pre-configured.
- Blog Post Management: Admin users can create, update, delete, and view blog posts, with full CRUD functionality.
- Responsive UI: Built with React and CSS, ensuring a responsive, clean design on all devices.
- Image Carousel: A dynamic image slider is implemented with Swiper.js to display featured posts or images.
- Secure Backend: The API is built with Node.js and Express.js, storing data in MongoDB.
- Admin Dashboard: A simple and intuitive dashboard to manage all blog posts efficiently.
- React.js: For building the user interface.
- React Router: For navigation and routing between pages.
- Axios: For making HTTP requests to interact with the backend API.
- Swiper.js: For creating the image carousel slider.
- CSS: For styling the application with custom, responsive designs.
- Node.js: JavaScript runtime for the backend server.
- Express.js: Framework for building the API.
- MongoDB: NoSQL database for storing blog posts and user data.
- JWT (JSON Web Tokens): Used for admin authentication to secure the API routes.
- npm: Package manager for JavaScript dependencies.
- Git: Version control to track changes and collaborate.
- Postman: For testing API endpoints during development.
- Node.js (v14 or higher) installed.
- MongoDB (either locally or via MongoDB Atlas).
-
Clone the Repository: First, clone the repository to your local machine:
git clone https://github.com/Gulverda/FullStack_BlogWeb.git cd FullStack_BlogWeb
-
Set Up the Backend: Navigate to the backend directory and install the required dependencies:
cd server npm install
-
ENV Create a .env file in the backend directory to store your environment variables (MongoDB URI and JWT secret)
MONGODB_URI=mongodb://localhost:example/exampleDB JWT_SECRET=your_jwt_secret_key
-
Install the frontend dependencies:
cd ../frontend npm install
-
Run the backend and frontend servers For the backend (API server):
cd backend npm run dev
For the frontend (React app):
cd frontend npm start