{"id":25724284,"url":"https://github.com/personalnerd/template-vite-react-router","last_synced_at":"2026-05-16T02:03:23.178Z","repository":{"id":123544369,"uuid":"461627303","full_name":"personalnerd/template-vite-react-router","owner":"personalnerd","description":"Basic template and file structure suggestion for a Vite + React, React Router DOM and Styled Components","archived":false,"fork":false,"pushed_at":"2022-02-20T22:56:19.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T21:36:11.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/personalnerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-02-20T21:57:04.000Z","updated_at":"2025-02-24T15:06:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"0287431d-e49a-4444-81ca-d056d78df720","html_url":"https://github.com/personalnerd/template-vite-react-router","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/personalnerd/template-vite-react-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/personalnerd%2Ftemplate-vite-react-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/personalnerd%2Ftemplate-vite-react-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/personalnerd%2Ftemplate-vite-react-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/personalnerd%2Ftemplate-vite-react-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/personalnerd","download_url":"https://codeload.github.com/personalnerd/template-vite-react-router/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/personalnerd%2Ftemplate-vite-react-router/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33087454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"online","status_checked_at":"2026-05-16T02:00:07.515Z","response_time":115,"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":[],"created_at":"2025-02-25T21:29:59.282Z","updated_at":"2026-05-16T02:03:23.172Z","avatar_url":"https://github.com/personalnerd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vite + React Template\n\nJust a basic template for use with Vite/React + React Router DOM and Styled Components.\n\nThis template was originally created from scratch, with following commands:\n\n```\n$ npm create vite@latest project-name -- --template react\n$ npm cd project-name\n$ npm install\n$ npm install react-router-dom\n$ npm install --save styled-components\n```\n\nAnd then I created some basic components, pages and layout to suggest a basic file structure to start the project, something like:\n\n```\nsrc\n├── components\n│   ├── Component1\n│   |   ├── index.jsx\n│   |   └── Component1.css\n│   └── Component2\n│       ├── index.jsx\n│       └── Component2.css\n├── pages\n│   ├── Page1\n│   |   ├── index.jsx\n│   |   └── Page1.css\n│   ├── Page2\n│   |   ├── index.jsx\n│   |   └── Page2.css\n│   └── Layout\n│       ├── Layout.jsx\n│       ├── Header.jsx\n│       └── Footer.jsx\n├── main.jsx\n└── main.css\n```\n\nI like to separate the Layout and components used on layout on `src/pages/Layout`\n\nThat's it. I think it's a good start when I need to use **react-router-dom**.\n\nComments and suggestions are welcome. 😊\n\n---\n\n## Development setup\n```bash\n# clone this repo\n\n# install dependencies\n$ npm install\n\n# serve with hot reload at localhost:3000\n$ npm run dev\n```\n\n## Release History\n- 0.0.0\n  - First commit.\n  - Using `src/pages/Layout/Layout.jsx` isntead of `App.jsx` on `index.jsx`.\n  - Layout components are at same level of Layout (like Header or Footer)\n\n## Meta\nTarcisio Cavalcante Uchoa - Front-End Developer\n\n[![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white)](https://twitter.com/cisoxp)\n\u0026nbsp;\n[![Linkedin](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://linkedin.com/in/tcavalcante)\n\nDistributed under MIT License. See `` LICENSE`` for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpersonalnerd%2Ftemplate-vite-react-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpersonalnerd%2Ftemplate-vite-react-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpersonalnerd%2Ftemplate-vite-react-router/lists"}