{"id":32331738,"url":"https://github.com/natiassefa/react.js-template-basic","last_synced_at":"2026-04-29T21:01:56.343Z","repository":{"id":319929977,"uuid":"1080132195","full_name":"natiassefa/react.js-template-basic","owner":"natiassefa","description":"Basic template for react apps ","archived":false,"fork":false,"pushed_at":"2025-10-21T00:53:04.000Z","size":177,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-21T02:19:19.355Z","etag":null,"topics":["prettier","react","react-router-dom","react-snap","reactjs","seo","template","vite","vitejs"],"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/natiassefa.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-20T23:17:06.000Z","updated_at":"2025-10-21T01:07:21.000Z","dependencies_parsed_at":"2025-10-21T02:19:49.125Z","dependency_job_id":"ed94b591-7385-4b64-8e0a-97741ce75f51","html_url":"https://github.com/natiassefa/react.js-template-basic","commit_stats":null,"previous_names":["natiassefa/react.js-template-basic"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/natiassefa/react.js-template-basic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natiassefa%2Freact.js-template-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natiassefa%2Freact.js-template-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natiassefa%2Freact.js-template-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natiassefa%2Freact.js-template-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natiassefa","download_url":"https://codeload.github.com/natiassefa/react.js-template-basic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natiassefa%2Freact.js-template-basic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["prettier","react","react-router-dom","react-snap","reactjs","seo","template","vite","vitejs"],"created_at":"2025-10-23T19:54:34.751Z","updated_at":"2026-04-29T21:01:56.308Z","avatar_url":"https://github.com/natiassefa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React.js Template for Small Businesses\n\nA production-ready React.js template designed for small business websites. Built with modern tools and optimized for SEO, mobile responsiveness, and easy customization.\n\n## Features\n\n### Core Technologies\n- **[React 18](https://reactjs.org)** - Modern React with hooks\n- **[TypeScript](https://www.typescriptlang.org)** - Type-safe development\n- **[Vite](https://vitejs.dev)** - Lightning-fast build tool\n- **[TailwindCSS 3](https://tailwindcss.com)** - Utility-first CSS framework\n- **[React Router](https://reactrouter.com)** - Client-side routing\n\n### Business-Ready Features\n- **SEO Optimized** - Pre-rendering with react-snap for search engines\n- **Mobile Responsive** - Custom `useMobile` hook for adaptive layouts\n- **Centralized Configuration** - Single config file for all business information\n- **Professional Pages** - Home, About, Contact, Privacy Policy, Terms of Service\n- **Social Media Integration** - Open Graph and Twitter Card support\n- **Contact Forms** - Ready-to-use contact forms with validation\n\n### Developer Experience\n- **[Vitest](https://vitest.dev)** - Fast unit testing\n- **[Testing Library](https://testing-library.com)** - React component testing\n- **[ESLint](https://eslint.org)** - Code quality enforcement\n- **[Prettier](https://prettier.io)** - Consistent code formatting\n\n## Quick Start\n\n### Prerequisites\n- Node.js 18.x or higher\n- npm, yarn, or pnpm\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/natiassefa/react.js-template-basic.git my-business-site\n   cd my-business-site\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Customize business information**\n   Edit `src/config/contact.tsx` with your business details:\n   ```typescript\n   export const contactInfo: ContactInfo = {\n     business: {\n       name: 'Your Business Name',\n       tagline: 'Your tagline here',\n       description: 'Your business description',\n       logo: '/logo.svg'\n     },\n     contact: {\n       email: 'hello@yourbusiness.com',\n       phone: '+1 (555) 123-4567',\n       // ... more fields\n     }\n     // ... social media, address, hours\n   }\n   ```\n\n4. **Start development server**\n   ```bash\n   npm run dev\n   ```\n\n   Visit [http://localhost:5173](http://localhost:5173)\n\n## Available Scripts\n\n### Development\n```bash\nnpm run dev          # Start development server with hot reload\n```\n\n### Building\n```bash\nnpm run build        # Standard production build\nnpm run build:ssg    # SEO-optimized build with pre-rendering (recommended)\n```\n\n### Testing \u0026 Quality\n```bash\nnpm run test         # Run unit tests\nnpm run test:ui      # Run tests with UI interface\nnpm run lint         # Check code quality with ESLint\nnpm run typecheck    # Check TypeScript types\n```\n\n### Preview\n```bash\nnpm run serve        # Preview production build locally\n```\n\n## Project Structure\n\n```\nsrc/\n├── components/\n│   ├── App/           # Main app component\n│   ├── Header/        # Responsive navigation header\n│   ├── Footer/        # Footer with links and social media\n│   └── SEO/           # SEO metadata component\n├── pages/\n│   ├── Home.tsx       # Landing page\n│   ├── About.tsx      # About page\n│   ├── Contact.tsx    # Contact page with form\n│   ├── Privacy.tsx    # Privacy policy\n│   └── Terms.tsx      # Terms of service\n├── config/\n│   └── contact.tsx    # Centralized business configuration\n├── hooks/\n│   └── useMobile.ts   # Responsive design hook\n├── Routes.tsx         # React Router configuration\n└── index.tsx          # App entry point\n```\n\n## Customization Guide\n\n### 1. Update Business Information\nEdit `src/config/contact.tsx` to update:\n- Business name, tagline, and description\n- Contact email, phone, and support email\n- Physical address and business hours\n- Social media links (Twitter, Facebook, LinkedIn, etc.)\n\n### 2. Add Your Logo\nReplace `public/logo.svg` with your business logo.\n\n### 3. Customize Open Graph Image\nAdd `public/og-image.jpg` (1200x630px) for social media previews.\n\n### 4. Update Colors and Styling\nThe template uses TailwindCSS. Edit `tailwind.config.js` to customize:\n- Brand colors\n- Fonts\n- Spacing\n- Breakpoints\n\n### 5. Add New Pages\n1. Create page component in `src/pages/`\n2. Add route in `src/Routes.tsx`\n3. Update navigation in `src/config/contact.tsx`\n4. Add route to pre-rendering in `package.json` under `reactSnap.include`\n\n## SEO Optimization\n\nThis template includes comprehensive SEO features:\n\n### Pre-rendering\nPages are pre-rendered to static HTML using react-snap, ensuring search engines can crawl all content.\n\n### Meta Tags\nEvery page includes:\n- Title tags with business name\n- Meta descriptions\n- Open Graph tags (Facebook)\n- Twitter Card tags\n- Canonical URLs\n- Structured business data\n\n### Configuration\nSee [SEO_IMPLEMENTATION.md](./SEO_IMPLEMENTATION.md) for detailed SEO documentation.\n\n## Mobile Responsiveness\n\nThe template includes a custom `useMobile` hook for adaptive layouts:\n\n```typescript\nimport { useMobile } from 'hooks'\n\nexport default function MyComponent() {\n  const { isMobile, isTablet, isDesktop } = useMobile()\n\n  return (\n    \u003cdiv className={isMobile ? 'mobile-layout' : 'desktop-layout'}\u003e\n      {/* Your content */}\n    \u003c/div\u003e\n  )\n}\n```\n\n### Breakpoints\n- `isMobile`: \u003c 768px\n- `isTablet`: 768px - 1024px\n- `isDesktop`: \u003e 1024px\n\n## Deployment\n\n### Recommended Hosting Providers\n\n1. **[Vercel](https://vercel.com)** (Recommended)\n   - Zero configuration\n   - Automatic deployments from Git\n   - Free SSL and CDN\n   - Build command: `npm run build:ssg`\n   - Output directory: `dist`\n\n2. **[Netlify](https://netlify.com)**\n   - Drag-and-drop deployment\n   - Automatic deployments from Git\n   - Form handling built-in\n   - Build command: `npm run build:ssg`\n   - Output directory: `dist`\n\n3. **[Cloudflare Pages](https://pages.cloudflare.com)**\n   - Fast global CDN\n   - Free unlimited bandwidth\n   - Build command: `npm run build:ssg`\n   - Output directory: `dist`\n\n### Deployment Settings\n- **Build command**: `npm run build:ssg`\n- **Output directory**: `dist`\n- **Node version**: 18.x or higher\n\n## Testing\n\n### Unit Tests\n```bash\nnpm run test\n```\n\n### Interactive Testing\n```bash\nnpm run test:ui\n```\n\nVisit [http://localhost:51204/__vitest__/](http://localhost:51204/__vitest__/) to interact with tests.\n\n## Browser Support\n\n- Chrome (latest)\n- Firefox (latest)\n- Safari (latest)\n- Edge (latest)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## Support\n\nFor issues and questions:\n- Create an issue on [GitHub](https://github.com/natiassefa/react.js-template-basic/issues)\n- Email: natnael.w.assefa@gmail.com\n\n## Documentation\n\n- [SEO Implementation Guide](./SEO_IMPLEMENTATION.md) - Comprehensive SEO documentation\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Author\n\n**Nati Assefa**\n- GitHub: [@natiassefa](https://github.com/natiassefa)\n- Email: natnael.w.assefa@gmail.com\n\n## Acknowledgments\n\nBuilt on top of [reactjs-vite-tailwindcss-boilerplate](https://github.com/joaopaulomoraes/reactjs-vite-tailwindcss-boilerplate) by João Paulo Moraes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatiassefa%2Freact.js-template-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatiassefa%2Freact.js-template-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatiassefa%2Freact.js-template-basic/lists"}