{"id":26903692,"url":"https://github.com/runhannah/dog-finder","last_synced_at":"2025-10-09T23:10:45.469Z","repository":{"id":281440893,"uuid":"941000012","full_name":"RunHannah/dog-finder","owner":"RunHannah","description":"Find your match! Includes session managment with cookies, protected routes. TypeScript, React, Next.js, Shadcn, Tailwind","archived":false,"fork":false,"pushed_at":"2025-04-18T20:16:05.000Z","size":5803,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T21:31:48.949Z","etag":null,"topics":["middleware","protected-routes","session-cookie"],"latest_commit_sha":null,"homepage":"https://dog-finder-six.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/RunHannah.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,"zenodo":null}},"created_at":"2025-03-01T08:35:28.000Z","updated_at":"2025-04-18T20:16:08.000Z","dependencies_parsed_at":"2025-04-20T10:45:38.938Z","dependency_job_id":null,"html_url":"https://github.com/RunHannah/dog-finder","commit_stats":null,"previous_names":["runhannah/dog-finder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RunHannah/dog-finder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RunHannah%2Fdog-finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RunHannah%2Fdog-finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RunHannah%2Fdog-finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RunHannah%2Fdog-finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RunHannah","download_url":"https://codeload.github.com/RunHannah/dog-finder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RunHannah%2Fdog-finder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002341,"owners_count":26083340,"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-09T02:00:07.460Z","response_time":59,"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":["middleware","protected-routes","session-cookie"],"created_at":"2025-04-01T10:38:43.552Z","updated_at":"2025-10-09T23:10:45.455Z","avatar_url":"https://github.com/RunHannah.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dog Finder\n\nFind your new best friend! Browse dogs from our network of shelters and rescues.\n\n## Features\n\n### Authentication\n\n- **Login and Logout:** Users can log in and log out using the provided login and logout functions.\n- **Session Management:** Sessions are managed using cookies. The session is created with `createSession` and deleted with `deleteSession`.\n- **Protected Routes:** Middleware in `middleware.ts` protects `/search` and `/favorites` routes and redirects users based on their authentication status.\n\n### Cookies and Sessions\n\n- **Session Storage:** Sessions are stored in cookies with HTTP-only, secure, and same-site attributes.\n- **Authentication Check:** The middleware checks for the session cookie to determine if a user is authenticated.\n\n### Liking and Matching\n\n- **Favorites:** Users can like dogs and view their favorite dogs on the Favorites page (`app/favorites/page.tsx`).\n- **Matching:** Users can get a match from their favorite dogs using the `getMatch` function.\n- **Match Details:** The Favorites page displays a drawer with match details when a match is found.\n\n### Searching, Filtering and Sorting\n\n- **Search:** By city and state\n- **Filter:** By breed, minimum age, and maximum age\n- **Sort:** By breed, name, age, and desc or asc order\n\n## Technologies\n\n- **TypeScript**\n- **React 19**\n- **Next.js 15**\n- **React Hook Form**\n- **Zod**\n- **Tailwind**\n- **Shadcn/ui**\n\n## Getting Started\n\nTo run this application locally, follow these steps:\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- [Node.js](https://nodejs.org/) (version 14.0 or higher)\n- [npm](https://www.npmjs.com/) (comes with Node.js)\n\n### Installation\n\n**Clone the repository, install packages, start server:**\n\n```bash\ngit clone https://github.com/RunHannah/dog-finder\n\nnpm install\n\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunhannah%2Fdog-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunhannah%2Fdog-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunhannah%2Fdog-finder/lists"}