The frontend of Pencraft is built with Next.js and features a responsive, user-friendly UI for creating, viewing, and summarizing blog posts. This client-side application communicates with the backend for authentication, post management, and AI summarization.
- Dynamic Post Routing: Each post has its own dedicated route using Next.js's dynamic routing.
- Markdown Support: Create posts using a markdown-friendly editor with a live preview.
- Generative AI Summarization: Summarize articles effortlessly using the Gemini API.
- Dark and Light Mode: Toggle between themes seamlessly for an optimal reading experience.
- Responsive Design: Optimized for both desktop and mobile devices.
- Post Discovery:
- View all posts written by all authors.
- Search posts using a powerful search bar.
- Filter posts by author.
- User Profiles:
- View and manage your own posts from your profile page.
- Publish new posts with ease using a markdown editor.
- Framework: Next.js
- Language: TypeScript
- Styling: TailwindCSS
- Markdown Rendering:
react-showdownandshowdown - UI Components: Custom-built with reusable components.
- API Communication: Axios and REST.
- Node.js (14+)
- npm or yarn
- API Endpoint for the backend (e.g., http://localhost:5000).
-
Clone the repository:
git clone https://github.com/mounicasruthi/pencraft-frontend.git cd pencraft-frontend -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open the app at http://localhost:3000.
-
Advanced Markdown Editor
- Real-time markdown preview using
react-mdeandshowdown. - User-friendly formatting toolbar for easy editing.
- Real-time markdown preview using
-
AI-Powered Article Summarization
- Generate concise summaries of posts via integration with Gemini API.
- Summaries are fetched dynamically and displayed alongside post content.
-
Dark Mode
- Full dark mode support using TailwindCSS.
- Automatic theme detection based on system settings.
-
Post Search and Filter
- Search posts by keywords or filter posts by author.
-
Responsive Design
- Optimized for both desktop and mobile devices.
-
Post Editing and Deletion:
Enable users to edit and delete their posts directly from their profile or post page. -
Comments and Likes:
Allow readers to engage with posts through comments and likes. -
Tag System:
Introduce tagging for improved content categorization and discovery. -
Localization:
Add multi-language support for a global audience. -
Activity Metrics:
Display user statistics like the number of posts, comments, or likes. -
Social Media Integration:
Add sharing options for platforms like Twitter, Facebook, and LinkedIn.







