AJP MICRO-AA-2
AJP MICRO-AA-2
Mumbai
A MICROPROJECT REPORT ON
Blog Publishing Platform
Submitted by: -
Roll Enrolment Number Name
Number
04 2200150094 Anjali Yadgiri Durgam
1 Introduction 1
2 2
Objectives
4 5
Methodology
5 Implementation 6-9
6 Output 10-12
7 Conclusion 13
1. INTRODUCTION
You can edit or delete your posts at any time, giving you complete
control over your content. The platform makes it easy to share your
voice with the world while ensuring that your data remains safe and
secure. It's designed to focus on core features like writing, managing
posts, and accessing blogs, making the blogging process seamless for
everyone.
1
2. Objective of the Project:
2
3. System Design and Methodology:
System Design:
Flowchart:
3
Frontend (GUI):
Created using Java Swing.
Screens:
Main Screen: Buttons for Login, Sign Up, and View Blogs.
Login Screen: Fields for Username/Email and Password.
Signup Screen: Fields for Username, Email, Phone Number, and
Password.
Blog Screen: Options to Add, Edit, Delete, and View Blogs.
View Blogs Screen: Displays all blogs in read-only mode.
Backend:
Language: Java (Advanced Java).
Database Integration: MySQL using a DBConnection class for
connectivity.
Database:
Users Table: Stores user details like username, email, phone, and
password.
Posts Table: Stores blog posts with title, description, and linked user ID.
Tools:
Editor: Notepad++.
Database: MySQL.
4
Methodology
1.Requirement Analysis:
Understand the project objectives, identify key features like user signup,
login, blog creation, editing, viewing, and database integration.
2.Planning and Design:
-Use Java Swing for the graphical user interface (GUI) and MySQL for
storing user and blog data.
-Plan database tables for users and blogs, ensuring proper relationships and
scalability.
3.Development:
-Frontend Development: Use Java Swing components to create visually
appealing frames like MainFrame, LoginFrame, SignupFrame, BlogFrame,
and ViewBlogsFrame.
-Backend Development: Write Java code to handle user authentication, blog
operations, and interactions with the database using JDBC.
-Database Setup: Create and populate the MySQL database with tables for
users and blogs.
4.Integration:
-Link the frontend and backend through proper event handling and database
connectivity.
-Ensure all frames are interconnected for smooth navigation.
5.Testing and Debugging:
-Test individual components (unit testing) and the entire system (integration
testing).
5
-Identify and resolve bugs to improve performance and reliability.
4. Program Code
import javax.swing.*;
import java.awt.*;
6
l1.setFont(new Font("Arial", Font.BOLD, 16));
l1.setBounds(10, 10, 500, 30);
txt.add(l1);
JLabel l4 = new JLabel("If you are a user, click on the view button.");
l4.setFont(new Font("Arial", Font.ITALIC, 14));
l4.setBounds(10, 100, 500, 30);
txt.add(l4);
add(txt);
7
loginButton.setBounds(50, 240, 100, 40);
loginButton.addActionListener(e -> {
new LoginFrame().setVisible(true);
dispose();
});
signupButton.addActionListener(e -> {
new SignupFrame().setVisible(true);
dispose();
});
viewBlogsButton.addActionListener(e -> {
new ViewBlogsFrame().setVisible(true);
8
dispose();
});
add(loginButton);
add(signupButton);
add(viewBlogsButton);
}
9
5.
Output
10
11
12
Conclusion
Learning outcomes :-
I have learned how to connect Java with a MySQL database for user and
blog data management.
Applications:-
The Blog Publishing Platform can be used for personal blogging, business
content, education, community engagement, professional blogging, creative
writing, niche websites, and news media. It allows users to share content,
interact with others, and build an audience.
13