{"id":26869396,"url":"https://github.com/yaredow/next-starter","last_synced_at":"2025-03-31T06:01:27.763Z","repository":{"id":244814501,"uuid":"816349487","full_name":"yaredow/next-starter","owner":"yaredow","description":"A feature rich Next.js starter template","archived":false,"fork":false,"pushed_at":"2025-03-13T19:27:33.000Z","size":2228,"stargazers_count":20,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T19:43:30.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://next-start.yaredyilma.dev/","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/yaredow.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-06-17T15:03:51.000Z","updated_at":"2025-03-13T19:04:12.000Z","dependencies_parsed_at":"2025-02-17T06:26:26.180Z","dependency_job_id":"1c77c4c6-b0d7-4b96-ac89-7bf7e9485f2e","html_url":"https://github.com/yaredow/next-starter","commit_stats":null,"previous_names":["yaredow/nextjs-starter-template","yaredow/next-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaredow%2Fnext-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaredow%2Fnext-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaredow%2Fnext-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaredow%2Fnext-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaredow","download_url":"https://codeload.github.com/yaredow/next-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423731,"owners_count":20774820,"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-31T06:01:26.579Z","updated_at":"2025-03-31T06:01:27.703Z","avatar_url":"https://github.com/yaredow.png","language":"TypeScript","funding_links":[],"categories":["Starter Kits"],"sub_categories":[],"readme":"# nextjs-starter-template\n\nA robust and flexible Next.js starter template with TypeScript, tRPC, Jest, Cypress, Better-auth.js, Drizzle ORM, and more. This template provides everything you need to kickstart your modern web development projects with best practices and industry-standard tools.\n\n## Features\n\nThis template is built using the following technologies:\n\n- **Core Technologies:**\n\n  - **Next.js**: Powerful React framework with server-side rendering and more.\n  - **TypeScript**: Strongly-typed language for enhanced code quality and maintainability.\n\n- **UI \u0026 Styling:**\n\n  - **Tailwind CSS**: Utility-first CSS framework for rapid UI development.\n  - **Shadcn UI**: Beautifully designed and accessible UI components.\n\n- **Backend \u0026 Data:**\n\n  - **tRPC**: End-to-end typesafe APIs made easy with React and TypeScript.\n  - **Drizzle**: TypeScript ORM that's lightweight, performant, and type-safe.\n  - **Stripe**: Powerful and flexible tools for internet commerce and online payments.\n\n- **Authentication \u0026 Security:**\n\n  - **Better-auth**: Modern authentication solution for Next.js applications with enhanced security.\n\n- **Testing:**\n\n  - **Jest**: Comprehensive unit and integration testing setup.\n  - **Cypress**: End-to-end testing for simulating real user interactions.\n\n- **Other Features:**\n  - **ESLint and Prettier**: Ensuring code quality and consistency.\n  - **Husky and Lint-Staged**: Pre-commit hooks to automate tests and linting.\n  - **dotenv**: Easy management of environment variables.\n  - **next-seo** and **next-sitemap**: SEO and sitemap management for better search engine visibility.\n\n## Getting Started\n\n### Obtaining API Keys\n\n- **Auth Google keys**: [Generate your Google auth API key here](console.cloud.google.com).\n- **Auth Facebook keys**: [Get your Facebook auth API key here](developers.facebook.com).\n- **Stripe**: Follow [this guide](https://stripe.com/docs/keys) to obtain your Stripe API keys and configure your Stripe account.\n- **Better-auth**: Follow [this guide](https://better-auth.com/docs/get-started) to set up Better-auth and obtain your necessary credentials.\n- **Resend key**: [Get your Stripe Resend key here](resend.com).\n- **Upstash Redis (for rate limiting)**: Follow [this guide](https://upstash.com/docs/getting-started) to create an Upstash Redis database and obtain your connection details.\n\nClone the repository and start building your application with confidence!\n\ngit clone https://github.com/yaredow/next-starter.git\ncd next-starter\nnpm install\n\n```\n\n```\n\n## Usage\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/your-username/your-repo-name.git\n   cd your-repo-name\n   ```\n\n2. Install dependencies:\n\n   ```\n   npm install\n   ```\n\n3. Create a `.env` file by copying the `.env.example` file:\n\n   ```\n   cp .env.example .env\n   ```\n\n4. Create a `.env.local` file by copying the `.env.local.example` file:\n\n   ```\n   cp .env.local.example .env.local\n   ```\n\n5. Open the `.env` and `.env.local` files and replace the placeholder values with your actual environment variable values.\n\n6. Run the development server:\n\n   ```\n   npm run dev\n   ```\n\n7. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Running Tests\n\n- **End-to-End Tests (Cypress)**:\n\n  To run Cypress end-to-end tests, use the following command:\n\n  ```\n  npm run cypress\n  ```\n\n- **Unit Tests (Jest)**:\n\n  To run Jest unit tests, use the following command:\n\n  ```\n  npm run test\n  ```\n\n## Running React Email in Development\n\nTo start the React Email development server, use the following command:\n\n```\nnpm run email:dev\n```\n\n## Pre-commit Hook\n\nThis project uses [Husky](https://github.com/typicode/husky) to manage Git hooks. When you commit a change, Husky runs the following commands automatically:\n\n```\nnpm run format:fix \u0026\u0026 npm run lint \u0026\u0026 npm test\n```\n\n- `npm run format:fix`: This command formats your code using a formatter (e.g., Prettier).\n- `npm run lint`: This command runs the linter to check for code quality issues.\n- `npm test`: This command runs the test suite to ensure that your changes do not break existing functionality.\n\nThese commands help maintain code quality and consistency across the project.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n```\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaredow%2Fnext-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaredow%2Fnext-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaredow%2Fnext-starter/lists"}