Skip to content

likhonsheikhbd/likhonsheikhbd.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AstroBlog Ξ© - Next.js SEO-Optimized Blog Platform

AstroBlog Ξ© Logo

A modern, SEO-optimized blog platform built with Next.js, featuring security-first architecture, performance optimization, and comprehensive search engine optimization. Created by Likhon Sheikh - Passionate Software Developer & Ethical Hacker from Bangladesh πŸ‡§πŸ‡©.

πŸš€ Live Demo

✨ Features

πŸ” SEO Excellence

  • Technical SEO: Automated sitemap generation, optimized robots.txt, structured data
  • Performance: Core Web Vitals optimization, edge caching, image optimization
  • Content SEO: Meta tags, Open Graph, Twitter Cards, canonical URLs
  • Analytics: Built-in page view tracking, search query analytics

πŸ›‘οΈ Security-First Architecture

  • Row-Level Security (RLS) in Postgres with Prisma middleware
  • NextAuth v5 with JWT edge compatibility
  • Input validation with Zod schemas preventing XSS/injection attacks
  • Comprehensive audit logging for compliance and monitoring

🎨 Modern Design System

  • Geist Design System for consistent, developer-focused UI
  • Responsive design with mobile-first approach
  • Dark/light mode support with system preference detection
  • Accessible components following WCAG guidelines

⚑ Performance & Scalability

  • Edge runtime for API routes and middleware
  • Vercel Blob integration for media storage
  • Database connection pooling with Prisma Accelerate
  • Static generation with ISR for optimal performance

πŸ› οΈ Tech Stack

Frontend

  • Next.js 14 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first styling
  • Geist UI - Vercel's design system components
  • Lucide React - Beautiful, customizable icons

Backend

  • Neon Postgres - Serverless PostgreSQL database
  • Prisma - Type-safe database ORM with Accelerate
  • NextAuth v5 - Authentication with JWT edge compatibility
  • Zod - Runtime type validation and parsing
  • Vercel Blob - File storage and CDN

Development & Testing

  • Vitest - Fast unit testing framework
  • Playwright - End-to-end testing
  • ESLint & Prettier - Code linting and formatting
  • GitHub Actions - CI/CD pipeline

πŸ“ Project Structure

``` astroblog-omega/ β”œβ”€β”€ README.md β”œβ”€β”€ llm.txt # LLM context file β”œβ”€β”€ package.json β”œβ”€β”€ next.config.js β”œβ”€β”€ tailwind.config.ts β”œβ”€β”€ tsconfig.json β”œβ”€β”€ .env.example β”œβ”€β”€ .env.local β”œβ”€β”€ .gitignore β”œβ”€β”€ .eslintrc.json β”œβ”€β”€ prettier.config.js β”œβ”€β”€ vitest.config.ts β”œβ”€β”€ playwright.config.ts β”œβ”€β”€ next-env.d.ts β”‚ β”œβ”€β”€ prisma/ β”‚ β”œβ”€β”€ schema.prisma # Complete database schema with RLS β”‚ β”œβ”€β”€ seed.ts # Database seeding script β”‚ └── migrations/ # Database migration files β”‚ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ app/ # Next.js App Router β”‚ β”‚ β”œβ”€β”€ layout.tsx # Root layout with SEO optimization β”‚ β”‚ β”œβ”€β”€ page.tsx # Homepage with hero section β”‚ β”‚ β”œβ”€β”€ loading.tsx # Global loading component β”‚ β”‚ β”œβ”€β”€ error.tsx # Global error boundary β”‚ β”‚ β”œβ”€β”€ not-found.tsx # 404 page β”‚ β”‚ β”œβ”€β”€ sitemap.ts # Dynamic sitemap generation β”‚ β”‚ β”œβ”€β”€ robots.ts # Robots.txt configuration β”‚ β”‚ β”œβ”€β”€ manifest.ts # PWA manifest β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ (auth)/ # Authentication routes β”‚ β”‚ β”œβ”€β”€ (blog)/ # Blog routes β”‚ β”‚ β”œβ”€β”€ (admin)/ # Admin dashboard β”‚ β”‚ └── api/ # API routes β”‚ β”‚ β”‚ β”œβ”€β”€ components/ # Reusable UI components β”‚ β”‚ β”œβ”€β”€ ui/ # Geist UI components β”‚ β”‚ β”œβ”€β”€ layout/ # Layout components β”‚ β”‚ β”œβ”€β”€ blog/ # Blog-specific components β”‚ β”‚ β”œβ”€β”€ admin/ # Admin components β”‚ β”‚ β”œβ”€β”€ auth/ # Authentication components β”‚ β”‚ └── seo/ # SEO components β”‚ β”‚ β”‚ β”œβ”€β”€ lib/ # Utility libraries β”‚ β”œβ”€β”€ hooks/ # Custom React hooks β”‚ β”œβ”€β”€ types/ # TypeScript definitions β”‚ β”œβ”€β”€ styles/ # Global styles β”‚ └── actions/ # Server Actions β”‚ β”œβ”€β”€ tests/ # Test files β”‚ β”œβ”€β”€ unit/ # Vitest unit tests β”‚ β”œβ”€β”€ e2e/ # Playwright E2E tests β”‚ β”œβ”€β”€ fixtures/ # Test data β”‚ └── helpers/ # Test utilities β”‚ β”œβ”€β”€ public/ # Static assets β”œβ”€β”€ docs/ # Documentation └── .github/ # GitHub workflows ```

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm/pnpm
  • PostgreSQL database (Neon recommended)
  • Vercel account for deployment

1. Clone the Repository

```bash git clone https://github.com/likhonsheikhbd/astroblog-omega.git cd astroblog-omega ```

2. Install Dependencies

```bash npm install

or

pnpm install ```

3. Environment Setup

Copy `.env.example` to `.env.local` and configure:

```env

Database

DATABASE_URL="prisma+postgres://accelerate.prisma-data.net/?api_key=your_api_key" DIRECT_URL="postgresql://username:password@host:port/database"

Authentication

NEXTAUTH_SECRET="your-secret-key" NEXTAUTH_URL="http://localhost:3000"

OAuth Providers

GOOGLE_CLIENT_ID="your-google-client-id" GOOGLE_CLIENT_SECRET="your-google-client-secret"

Email Provider

RESEND_API_KEY="your-resend-api-key" EMAIL_FROM="noreply@yourdomain.com"

Vercel Blob

BLOB_READ_WRITE_TOKEN="your-blob-token"

Site Configuration

NEXT_PUBLIC_SITE_URL="https://lkhonsheikhbd.github.io" NEXT_PUBLIC_SITE_NAME="AstroBlog Ξ©" ```

4. Database Setup

```bash

Generate Prisma client

npx prisma generate

Run database migrations

npx prisma migrate deploy

Seed the database (optional)

npx prisma db seed ```

5. Development Server

```bash npm run dev

or

pnpm dev ```

Visit http://localhost:3000 to see the application.

πŸ§ͺ Testing

Unit Tests

```bash npm run test:unit

or

npm run test:unit:watch # Watch mode ```

End-to-End Tests

```bash npm run test:e2e

or

npm run test:e2e:ui # Interactive mode ```

All Tests

```bash npm run test ```

πŸ“Š SEO Strategy

Technical SEO

  • βœ… Site Structure: Logical URL hierarchy with semantic slugs
  • βœ… Performance: Core Web Vitals optimization (LCP < 2.5s, FID < 100ms, CLS < 0.1)
  • βœ… Mobile-First: Responsive design with mobile optimization
  • βœ… Structured Data: JSON-LD schema markup for articles and organization
  • βœ… Sitemaps: Automated XML sitemap generation
  • βœ… Robots.txt: Optimized crawling directives

Content Strategy

  • 🎯 Keyword Research: Focus on Next.js, React, web development topics
  • πŸ“… Content Calendar: Regular publishing schedule with evergreen content
  • πŸ”— Internal Linking: Strategic linking between related posts
  • πŸ“ On-Page SEO: Optimized titles, meta descriptions, headers

Off-Page SEO

  • πŸ”— Link Building: Guest posting, resource page inclusion
  • πŸ“± Social Media: Content promotion across platforms
  • πŸ‘₯ Community: Active participation in developer communities
  • πŸ“ˆ Brand Monitoring: Tracking mentions and reputation

πŸš€ Deployment

GitHub Pages

The application is configured for GitHub Pages deployment:

  1. Build Configuration: Static export enabled in `next.config.js`
  2. GitHub Actions: Automated deployment workflow
  3. Custom Domain: Configured for `lkhonsheikhbd.github.io`

Manual Deployment

```bash npm run build npm run export ```

Vercel Deployment

```bash npm run deploy ```

πŸ“ˆ Performance Metrics

Core Web Vitals Targets

  • LCP (Largest Contentful Paint): < 2.5 seconds
  • FID (First Input Delay): < 100 milliseconds
  • CLS (Cumulative Layout Shift): < 0.1

SEO KPIs

  • Organic Traffic Growth: 150% increase in 6 months
  • Keyword Rankings: 50+ keywords in top 10
  • Backlink Acquisition: 100+ high-quality backlinks
  • Core Web Vitals Score: 95%+ across all pages

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (`git checkout -b feature/amazing-feature`)
  3. Commit your changes (`git commit -m 'Add amazing feature'`)
  4. Push to the branch (`git push origin feature/amazing-feature`)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘¨β€πŸ’» Author

Likhon Sheikh

πŸ™ Acknowledgments

  • Next.js - The React framework for production
  • Vercel - Platform for frontend frameworks and static sites
  • Prisma - Next-generation ORM for Node.js and TypeScript
  • Neon - Serverless PostgreSQL platform
  • Geist Design System - Vercel's design system

Built with ❀️ by Likhon Sheikh

πŸ‡§πŸ‡© Made in Bangladesh

\`\`\`

About

A modern, SEO-optimized blog platform built with Next.js, featuring security-first architecture, performance optimization, and comprehensive search engine optimization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors