{"id":15723398,"url":"https://github.com/varsharani9/blogging-application","last_synced_at":"2026-04-14T05:32:04.885Z","repository":{"id":251690807,"uuid":"836520523","full_name":"VarshaRani9/Blogging-Application","owner":"VarshaRani9","description":"This is an application that allows users to sign up, log in, create, and read blog posts. The application features JWT-based authentication and leverages a serverless backend.","archived":false,"fork":false,"pushed_at":"2024-08-20T05:27:08.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T11:02:33.793Z","etag":null,"topics":["cloudflare-workers","hono","jwt","prisma","reactjs","tailwindcss","zod"],"latest_commit_sha":null,"homepage":"","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/VarshaRani9.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-01T03:03:05.000Z","updated_at":"2024-08-20T05:28:34.000Z","dependencies_parsed_at":"2024-08-05T04:51:13.022Z","dependency_job_id":"f7706799-817d-4882-8c8c-95ab53c96817","html_url":"https://github.com/VarshaRani9/Blogging-Application","commit_stats":null,"previous_names":["varsharani9/blogging-application"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VarshaRani9/Blogging-Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarshaRani9%2FBlogging-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarshaRani9%2FBlogging-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarshaRani9%2FBlogging-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarshaRani9%2FBlogging-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VarshaRani9","download_url":"https://codeload.github.com/VarshaRani9/Blogging-Application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarshaRani9%2FBlogging-Application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281830729,"owners_count":26569134,"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","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","hono","jwt","prisma","reactjs","tailwindcss","zod"],"created_at":"2024-10-03T22:11:31.522Z","updated_at":"2025-10-30T15:35:40.589Z","avatar_url":"https://github.com/VarshaRani9.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blogging Application\nThis is a full-fledged blogging application that allows users to sign up, log in, create, and read blog posts. The application features JWT-based authentication and leverages a serverless backend.\n\n## Features\n- User authentication (sign up and sign in)\n- Create, read blog posts\n- Fetch multiple blog posts\n- JWT-based authentication\n- Modular route structure\n- Prisma for database ORM\n- Zod validation for data integrity\n\n## Technology Used\n- Backend: Cloudflare Workers, Hono, Prisma, PostgreSQL\n- Frontend: React.js, Tailwind CSS\n- Validation: Zod (shared between frontend and backend)\n- Database: Neon PostgreSQL\n- Deployment: Vercel, Cloudflare Workers\n- Miscellaneous: JWT for authentication, npm for package management\n\n## Installation\n\nClone the Repository:\n```\ngit clone https://github.com/VarshaRani9/Blogging_Application.git\n\ncd Blogging_Application\n```\n\n### Backend Setup:\n\nNavigate to the backend directory:\n```\ncd backend\n```\n\nInstall dependencies:\n```\nnpm install\n```\n\nInitialize Prisma and migrate the database:\n\nnpx prisma migrate dev --name init_schema\n\n### Frontend Setup:\n\nNavigate to the frontend directory:\n```\ncd ../frontend\n```\n\nInstall dependencies:\n```\nnpm install\n```\n\n### Common Package Setup:\n\nNavigate to the common directory:\n```\ncd ../common\n```\n\nInstall dependencies and publish to npm:\n```\nnpm install\n\nnpm publish\n```\n\n### Usage\n#### Run Backend:\n\nNavigate to the backend directory:\n```\ncd backend\n```\n\nStart the development server:\n```\nnpm run dev\n```\n\n#### Run Frontend:\n\nNavigate to the frontend directory:\n```\ncd ../frontend\n```\n\nStart the development server:\n```\nnpm run dev\n```\n\n#### Access the Application:\n\nOpen your browser and go to http://localhost:3000.\n\n## Routes and Endpoints\n### User Routes\n\nSign Up:\n```\nURL: /api/v1/user/signup\nMethod: POST\nBody:\n{\n  \"email\": \"user@example.com\",\n  \"password\": \"password123\"\n}\n```\n\nSign In:\n```\nURL: /api/v1/user/signin\nMethod: POST\nBody:\n{\n  \"email\": \"user@example.com\",\n  \"password\": \"password123\"\n}\n```\n\n### Blog Routes\n\nCreate Blog:\n```\nURL: /api/v1/blog\nMethod: POST\nHeaders:\n{\n  \"Authorization\": \"Bearer \u003cJWT\u003e\"\n}\nBody:\n{\n  \"title\": \"My First Blog\",\n  \"content\": \"This is the content of my first blog.\"\n}\n```\n\nUpdate Blog:\n```\nURL: /api/v1/blog\nMethod: PUT\nHeaders:\n{\n  \"Authorization\": \"Bearer \u003cJWT\u003e\"\n}\nBody:\n{\n  \"id\": \"blog-id\",\n  \"title\": \"Updated Title\",\n  \"content\": \"Updated content.\"\n}\n```\n\nFetch Blog by ID:\n```\nURL: /api/v1/blog/:id\nMethod: GET\n```\n\nFetch All Blogs:\n```\nURL: /api/v1/blog/bulk\nMethod: GET\n```\n\n#### Common Package\nThe common package contains shared Zod validations to ensure data integrity across both the frontend and backend. This package is published on npm and can be installed as a dependency in both projects.\n\nInstallation:\n```\nnpm install @your-org/common\n```\n\nUsage Example:\n```\nimport { userSchema } from '@your-org/common';\n\n// Use in validation\nconst userData = userSchema.parse(requestBody);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarsharani9%2Fblogging-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarsharani9%2Fblogging-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarsharani9%2Fblogging-application/lists"}