A minimal writing website where users can write and save content. Simple, clean, no fancy UI - just pure writing.
- Simple text editor with auto-save (1-second debounce)
- Content persisted to Supabase
- Shared writing space using "main" document
- Minimal UI focused on writing
- Frontend: Next.js + React
- Database: Supabase
- Hosting: Vercel
- Philosophy: Keep it simple
-
Clone the repository
-
Install dependencies:
npm install
-
Set up Supabase:
- Create a Supabase project
- Run the commands in
database.sql
in your Supabase SQL Editor
-
Add environment variables in
.env.local
:NEXT_PUBLIC_SUPABASE_URL=your_supabase_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
-
Run the development server:
npm run dev
The project includes comprehensive test coverage:
npm test # Run tests once
npm run test:watch # Run tests in watch mode
npm run test:coverage # Run tests with coverage report
Test Stats:
- ✅ 53 tests across 5 test suites
- 🎯 88.34% overall code coverage
- 🧪 Full component and integration testing
- 🔄 Automated testing via GitHub Actions
Automated workflows run on every push and pull request:
- Test Suite: Multi-version Node.js testing
- Security Audit: Dependency vulnerability scanning
- Build Verification: Next.js build validation
- Coverage Reporting: Automated coverage tracking
Keep the philosophy of simplicity:
- No complex features
- Minimal error handling
- Focus on core writing functionality
- Light, smart implementation
- All changes must pass tests
Deploy to Vercel with:
npx vercel
Add the Supabase environment variables in your Vercel project settings.