A modern, futuristic-looking blog built with Next.js, featuring authentication with GitHub OAuth and a sleek glassmorphism design.
- Modern UI with glassmorphism design
- GitHub OAuth authentication
- Blog post creation and display
- Responsive design for all devices
- Smooth animations and transitions
- Server-side rendering for performance
- Install dependencies:
npm install-
Create a GitHub OAuth App:
- Go to GitHub Settings > Developer settings > OAuth Apps
- Click "New OAuth App"
- Set Homepage URL to
http://localhost:3000 - Set Authorization callback URL to
http://localhost:3000/api/auth/callback/github - Copy the Client ID and Client Secret
-
Create a
.env.localfile with your credentials:
GITHUB_ID=your_github_oauth_app_id
GITHUB_SECRET=your_github_oauth_app_secret
NEXTAUTH_SECRET=your_nextauth_secret_key
NEXTAUTH_URL=http://localhost:3000
- Generate a NEXTAUTH_SECRET:
openssl rand -base64 32- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
To deploy this blog to production:
- Build the application:
npm run build- Start the production server:
npm startOr deploy to Vercel with one click:
This project is licensed under the MIT License.