Choco-Blogo is a visually appealing and feature-rich blog management platform. Designed with a user-friendly interface, it provides admins with powerful LLM tools to analyze blog posts and track their performance using insightful metrics like word counts, repetition analysis, and post scores.
Username | Password |
---|---|
blogo@admin.com |
blogoAdmin |
-
Post Management:
- Admins can view all blog posts.
- Blog posts are analyzed for word count, unique words, and repetitive content.
-
Post Analysis:
- Automatic calculation of content score based on word usage and repetition.
- Visualization using a bar chart (powered by Chart.js).
-
Secure Admin Access:
- Only admins can access the analysis dashboard after proper authentication.
-
Responsive Design:
- Optimized for both desktop and mobile users.
- Next.js: For server-side rendering and client-side interactivity.
- React: Component-based UI development.
- Chart.js: Interactive visualizations for blog analysis.
- Next.js API Routes: For handling backend logic and data analysis.
- Prisma: ORM for interacting with the PostgreSQL database.
- PostgreSQL: For efficient and scalable data storage.
- Tailwind CSS: For modern and responsive design.
.
├── pages
│ ├── api
│ │ ├── analyze-posts.ts # API for analyzing blog posts
│ │ ├── check-session.ts # API for admin session validation
│ ├── analysis.tsx # Admin dashboard for analysis
│ ├── index.tsx # Homepage
├── prisma
│ ├── schema.prisma # Database schema
├── public # Static assets
├── styles # Global CSS styles
├── components # Reusable components
└── README.md # Project documentation
Follow these steps to run the project locally:
-
Clone the Repository:
git clone https://github.com/BlackHatDevX/choco-blogo.git cd choco-blogo
-
Install Dependencies:
npm install
-
Set Up Environment Variables: Create a
.env
file in the root directory and add:DATABASE_URL=postgres://your-db-user:your-db-password@your-db-host/your-db-name
-
Set Up Prisma: Generate the Prisma client and apply migrations:
npx prisma generate npx prisma migrate dev --name init
-
Start the Development Server:
npm run dev
Visit http://localhost:3000 to view the app.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a detailed description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
Jash Gro
GitHub: BlackHatDevX
Portfolio: bit.ly/jashgro
Feel free to reach out for any queries or suggestions!