{"id":15723262,"url":"https://github.com/anchaldevbytes/lekha","last_synced_at":"2026-04-18T06:32:26.844Z","repository":{"id":254837102,"uuid":"847670681","full_name":"AnchalDevBytes/lekha","owner":"AnchalDevBytes","description":"A Fullstack Blog Application","archived":false,"fork":false,"pushed_at":"2024-11-28T07:08:51.000Z","size":892,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T00:17:10.756Z","etag":null,"topics":["cloudflare-workers","honojs","nextjs14","postresql","prisma-orm","tailwindcss","typescript","zod"],"latest_commit_sha":null,"homepage":"https://lekha.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnchalDevBytes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-26T10:13:47.000Z","updated_at":"2024-11-28T07:08:55.000Z","dependencies_parsed_at":"2024-08-26T13:41:22.644Z","dependency_job_id":"7ec01475-a50e-4e6b-8bca-f360563470a1","html_url":"https://github.com/AnchalDevBytes/lekha","commit_stats":null,"previous_names":["anchaldevbytes/lekha"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnchalDevBytes%2Flekha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnchalDevBytes%2Flekha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnchalDevBytes%2Flekha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnchalDevBytes%2Flekha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnchalDevBytes","download_url":"https://codeload.github.com/AnchalDevBytes/lekha/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395596,"owners_count":20770243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare-workers","honojs","nextjs14","postresql","prisma-orm","tailwindcss","typescript","zod"],"created_at":"2024-10-03T22:10:51.101Z","updated_at":"2026-04-18T06:32:26.807Z","avatar_url":"https://github.com/AnchalDevBytes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lekha : A Fullstack Blog Application\n\nThis is a full-stack blog application that allows users to create, read, and bookmark blog posts. The application features a frontend, backend, and a common folder for shared utilities such as Zod validation.\n\n## Features\n\n- **CRUD Operations:** Create, Read, bookmark and share blog posts.\n- **User Authentication:** Secure login and registration system.\n- **Type Validation:** Consistent type definitions across frontend and backend using Zod and TypeScript.\n\n## Screenshots\n\n![Homepage](/readmeAssets/lekhaHomePage.png)\n\n## Tech Stack\n\n- **Frontend:** Next.js 14, ShadCN, Tailwind CSS\n- **Backend:** Hono.js, Cloudflare\n- **Database:** Prisma ORM, PostgreSQL\n- **Deployment:** Vercel (Frontend), Cloudflare (Backend)\n- **Type Validation:** Zod, TypeScript\n\n## Installation and Setup\n\n### Prerequisites\n\n- Node.js (v20 or later)\n- PostgreSQL\n\n### Backend Setup\n\n1. **Fork and then Clone the repository:**\n   ```bash\n    git clone https://github.com/AnchalDevBytes/lekha.git\n    cd lekha\n   ```\n\n2. **Install dependencies: frontend \u0026 backend**\n   ```bash\n   cd backend\n   npm install\n\n   cd frontend\n   npm install\n   ```\n\n3. **Set up the database:**\n   - Create a PostgreSQL and a Prisma accelerate database URL and update the `DATABASE_URL` with prisma accelerate and `DIRECT_URL` with postgresql url, in the `.env` file of backend.\n   - In the frontend `.env` just paste the backend server url example `http://localhost:8787`\n\n4. **Run database migrations:**\n   ```bash\n   npx prisma migrate dev --name name_of_migration\n   npx prisma generate --no-engine\n   ```\n\n5. **Start the backend server:**\n   ```bash\n   npm run dev\n   ```\n\n### Type Validation\n\nThis project follows an older approach of creating a common Zod module for both frontend and backend. This approach ensures that type validation for forms and APIs is consistent across the application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchaldevbytes%2Flekha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanchaldevbytes%2Flekha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchaldevbytes%2Flekha/lists"}