The Blog Management System is a web application designed to streamline the creation, management, and publication of blog posts. It offers an intuitive interface for administrators and authors to create, edit, and delete blog posts. The system also includes features for user authentication, content management, categories, tags, and comments.
- Front-end: HTML, CSS, JavaScript
- Back-end: PostgreSQL
-
User Authentication
- Secure login and registration for users.
- Role-based access control for administrators and authors.
-
Content Management
- Create, edit, and delete blog posts.
- Rich text editor for formatting blog content.
- Image upload and management.
-
Categories and Tags
- Organize posts into categories.
- Add tags to posts for better searchability.
-
Comments
- Enable readers to leave comments on posts.
- Manage and moderate comments.
-
Clone the repository:
git clone https://github.com/shourysingh07/blog-management-system.git cd blog-management-system
-
Set up the PostgreSQL Database:
- Create a new database called
blog_management_system
. - Create a .env file inside the api folder as
DB_NAME=
DB_USER=
DB_PASS=
DB_HOST=
DB_PORT=
JWT_SECRET=
PORT= file.
- Create a new database called
-
Install dependencies:
-
Ensure you have Node.js and npm installed.
-
Navigate to the project directory and run:
cd client
npm install
cd api
npm install
-
-
Run the application:
-
Start the backend server:
npm start
-
Start the frontend server:
npm run dev
-
-
Access the application:
- Open your web browser and navigate to
http://localhost:3000
.
- Open your web browser and navigate to
-
Register and login:
- Register a new account or log in with an existing account.
-
Manage posts:
- Use the dashboard to create, edit, and delete posts.
- Organize posts with categories and tags.
-
Moderate comments:
- Approve, edit, or delete comments left by readers.