Reading the repo
Opening the box…
Reading the repo
Opening the box…
Written by AI from the README.
Saved setup from 14 h ago
Will it work on macOS?
Heads-upBuilding it yourself? It also needs MongoDB.
CONTRIBUTING.mdThanks for your interest in contributing! This is a personal blogging platform built for self-reflection, and we welcome improvements, bug fixes, and new features.
localhost:27017git clone git@github.com:htetoowai219/personal-blog.git
cd personal-blog
npm install
npm run dev
The app runs at http://localhost:3000.
src/
├── lib/
│ ├── mongodb.ts # MongoDB connection (singleton)
│ ├── auth.ts # JWT auth helpers
│ └── models.ts # TypeScript interfaces
├── app/
│ ├── auth/ # Login/register page
│ ├── home/ # Blog list + create/edit/read views
│ └── api/
│ ├── auth/ # Login, register, logout, me
│ └── blogs/ # CRUD for blog entries
main for your changenpm run build
style attributes, no CSS modulesapp/api/, pages in app/getUserFromRequest() from src/lib/auth.tsuserId)"use client" directive"use client" when you need interactivityOpen an issue with:
By contributing, you agree that your contributions will be licensed under the MIT License.
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: xcode-select --install
git clone https://github.com/htetoowai219/personal-blog.git cd personal-blog
Node.js LTS (no version pinned)
# needs nvm: brew install nvm (or https://github.com/nvm-sh/nvm) nvm install --lts
Needs: MongoDB (no compose file — install locally or run via Docker)
npm ci
npm run dev
localhost:27017, or an Atlas connection stringgit clone git@github.com:htetoowai219/personal-blog.git
cd personal-blog
npm install
npm run dev
Open http://localhost:3000 and register an account. You're in.
Local defaults cover the database URI, database name, and a dev-only JWT secret, so no config file is needed to start. Override them with a .env.local file if you want — see Configuration.
Put your Atlas SRV string in .env.local:
MONGODB_URI=mongodb+srv://user:password@cluster.example.mongodb.net/
MONGODB_DB defaults to personal_blog.
No reports for macOS yet.
GitManual AI Agent reads the 3 key files and writes a step-by-step guide for macOS. Once written, it's saved for everyone.