{"id":19208447,"url":"https://github.com/zntb/react-template","last_synced_at":"2025-09-04T15:40:50.066Z","repository":{"id":197276730,"uuid":"690909865","full_name":"zntb/react-template","owner":"zntb","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-12T18:19:29.000Z","size":3144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T15:49:34.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zntb.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":"2023-09-13T06:08:46.000Z","updated_at":"2024-09-12T18:19:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"22a0ea17-1a12-46db-96b9-1e12861fd504","html_url":"https://github.com/zntb/react-template","commit_stats":null,"previous_names":["zntb/react-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zntb%2Freact-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zntb%2Freact-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zntb%2Freact-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zntb%2Freact-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zntb","download_url":"https://codeload.github.com/zntb/react-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240280990,"owners_count":19776418,"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":"2024-11-09T13:26:17.896Z","updated_at":"2025-02-23T07:14:56.908Z","avatar_url":"https://github.com/zntb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React + Fleek Starter Kit\n\n![image](https://github.com/fleekxyz/react-template/assets/55561695/0e7bfe91-ffe3-4dd5-852c-c551344163b4)\n\n## 🚀 Project Structure\n\nInside of your React project, you'll see the following folders and files:\n\n```\n/\n├── public/\n│   └── favicon.svg\n├── src/\n│   ├── assets/\n│   ├── main.tsx\n│   ├── App.tsx\n│   └── App.css\n├── index.html\n├── tsconfig.json\n├── vide.config.ts\n└── package.json\n```\n\nIf you want to lern more about `vite` and `react` you can checkout [Vite Documentation](https://vitejs.dev/).\n\n## 🧞 Commands\n\nAll commands are run from the root of the project, from a terminal:\n\n| Command                | Action                                           |\n| :--------------------- | :----------------------------------------------- |\n| `pnpm install`          | Installs dependencies                            |\n| `pnpm run dev`          | Starts local dev server at `localhost:3000`      |\n| `pnpm run build`        | Build your production site to `./dist/`          |\n| `pnpm run preview`      | Preview your build locally, before deploying     |\n| `pnpm run lint ...`    | Run Linter |\n\n## ⚡ How to deploy to Fleek\n\n### 1. Create a `fleek.json` config file:\nYou can configure this site deployment using [Fleek CLI]() and running:\n```\n \u003e fleek sites init\n   WARN! Fleek CLI is in beta phase, use it under your own responsibility\n   ? Choose one of the existing sites or create a new one. › \n   ❯ Create a new site\n```\nIt will prompt you for a `name`, `dist` directory location \u0026 `build command`\n- `name`: How you want to name the site\n- `dist`: The output directory where the site is located, for this template it's `dist`\n- `build command`: Command to build your site, this will be used to deploy the latest version either by CLI or Github Actions\n\n### 2. Deploy the site\nAfter configuiring your `fleek.json` file, you can deployt the site by running\n\n```\nfleek sites deploy\n```\nAfter running it you will get an output like this:\n```\n WARN! Fleek CLI is in beta, use it at your own discretion\n \u003e Success! Deployed!\n \u003e Site IPFS CID: QmP1nDyoHqSrRabwUSrxRV3DJqiKH7b9t1tpLcr1NTkm1M\n\n \u003e You can visit through the gateway:\n \u003e https://ipfs.io/ipfs/QmP1nDyoHqSrRabwUSrxRV3DJqiKH7b9t1tpLcr1NTkm1M\n ```\n\n### Extra features\n- **Continuous Integration (CI):** `fleek sites ci` [Documentation.](https://docs.fleek.xyz/services/sites/#continuous-integration-ci)\n- **Adding custom domains:** `fleek domains create` [Documentation.](https://docs.fleek.xyz/services/domains/)\n\n\n### Keep in mind:\n\nThis template has been configured to produce a static output.\n\n```js\n// vite.config.ts\n\nimport { defineConfig } from 'vite'\nimport react from '@vitejs/plugin-react-swc'\n\n// https://vitejs.dev/config/\nexport default defineConfig({\n  plugins: [react()],\n  base: \"./\",\n})\n```\n\nThis means that assets will be pre-fixed with `./`, you can learn more about it in [Vite Documentation](https://vitejs.dev/config/shared-options.html#base)\n\n\n## 👀 Want to learn more?\n\nFeel free to check [React documentation](https://react.dev/) or [Vite Documentation](https://vitejs.dev/guide/).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzntb%2Freact-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzntb%2Freact-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzntb%2Freact-template/lists"}