{"id":26685408,"url":"https://github.com/developermithu/nextjs-api-blog","last_synced_at":"2025-03-26T10:15:58.363Z","repository":{"id":283737767,"uuid":"952757755","full_name":"developermithu/nextjs-api-blog","owner":"developermithu","description":"Minimalist blog using Next.js and Laravel Rest API","archived":false,"fork":false,"pushed_at":"2025-03-21T21:08:41.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T21:30:28.063Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nextjs-laravel-rest-api.vercel.app","language":"JavaScript","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/developermithu.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":"2025-03-21T20:36:48.000Z","updated_at":"2025-03-21T21:20:43.000Z","dependencies_parsed_at":"2025-03-21T21:42:46.498Z","dependency_job_id":null,"html_url":"https://github.com/developermithu/nextjs-api-blog","commit_stats":null,"previous_names":["developermithu/nextjs-api-blog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developermithu%2Fnextjs-api-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developermithu%2Fnextjs-api-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developermithu%2Fnextjs-api-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developermithu%2Fnextjs-api-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developermithu","download_url":"https://codeload.github.com/developermithu/nextjs-api-blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632400,"owners_count":20647194,"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":[],"created_at":"2025-03-26T10:15:57.745Z","updated_at":"2025-03-26T10:15:58.345Z","avatar_url":"https://github.com/developermithu.png","language":"JavaScript","readme":"# Next.js + Laravel Rest API\n\nA minimalist seo friendly blog application built with **Next.js** and **Laravel REST API**.\n\n## Features\n\n- 🔐 Authentication with Laravel Sanctum\n- 👤 User and Admin roles\n- 📝 Blog post management \n- 🎨 Modern UI with Tailwind CSS\n- 🔄 Real-time data updates with SWR\n- 📱 Responsive design\n\n## Installation\n\n1. Clone the repository:\n   \n```bash\ngit clone https://github.com/developermithu/nextjs-api-blog.git\ncd nextjs-api-blog\n```\n\n2. Install dependencies:\n   \n```bash\nnpm install or bun install\n```\n\n3. Create a `.env.local` file in the root directory and add the following content:\n   \n```bash\nNEXT_PUBLIC_APP_URL=http://localhost:3000\nNEXT_PUBLIC_BACKEND_URL=http://localhost:8000\n```\n\n4. Start the development server:\n   \n```bash\nnpm run dev or bun dev\n```\n\n5. Open `http://localhost:3000` in your browser to view the application.\n\n\u003c!-- dummy login credentials --\u003e\n\n## Login with the following credentials:\n\n\n```bash\n# Admin Info:\nEmail: admin@gmail.com\nPassword: admin\n\n# User Info:\nEmail: user@gmail.com\nPassword: user\n```\n\n## Project Structure\n\n```nextjs-api-blog/\n├── src/\n│   ├── app/\n│   │   ├── (auth)/              # Authentication routes\n│   │   ├── (main)/              # Public routes\n│   │   ├── dashboard/           # Protected dashboard routes\n│   │   ├── styles/              # Global styles\n│   │   ├── layout.jsx           # Root layout\n│   │   └── page.jsx             # Home page\n│   ├── components/              # Reusable components\n│   ├── hooks/                   # Custom React hooks\n│   ├── lib/                     # Utilities and configurations\n│   └── services/                # API service functions\n```\n\n## Authentication\n\nThe application uses **Laravel Sanctum** for authentication. The authentication flow is handled through the `useAuth` hook, which provides:\n\n- **Login**, **Register** and **Logout** functionality\n\n## Dependencies\n\nKey dependencies used in this project: \n\n- [Backend](https://github.com/developermithu/api-blog-laravel) - Laravel + Sanctum\n- [Next.js 15](https://nextjs.org/) - React framework\n- [Tailwind CSS V4](https://tailwindcss.com/) - Utility-first CSS framework\n- [SWR](https://swr.vercel.app/) - Data fetching and caching\n- [Axios](https://axios-http.com/) - HTTP client\n- [Lucide React](https://lucide.dev/) - Icon library\n- [Shadcn UI](https://ui.shadcn.com/) - UI components library\n\nMade with ❤️ by [developermithu](https://developermithu.com)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopermithu%2Fnextjs-api-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopermithu%2Fnextjs-api-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopermithu%2Fnextjs-api-blog/lists"}