{"id":24609291,"url":"https://github.com/capdilla/test","last_synced_at":"2025-08-17T19:35:00.099Z","repository":{"id":271794126,"uuid":"914576985","full_name":"capdilla/test","owner":"capdilla","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-09T22:38:30.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T12:17:29.256Z","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/capdilla.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-01-09T21:44:43.000Z","updated_at":"2025-01-09T22:38:33.000Z","dependencies_parsed_at":"2025-01-09T23:25:44.986Z","dependency_job_id":"3f790dd8-4484-4805-99c5-a5d18b792c60","html_url":"https://github.com/capdilla/test","commit_stats":null,"previous_names":["capdilla/test"],"tags_count":0,"template":false,"template_full_name":"bebeal/vite-amplify","purl":"pkg:github/capdilla/test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Ftest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Ftest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Ftest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Ftest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capdilla","download_url":"https://codeload.github.com/capdilla/test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capdilla%2Ftest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270899020,"owners_count":24664707,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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-01-24T18:14:02.940Z","updated_at":"2025-08-17T19:35:00.037Z","avatar_url":"https://github.com/capdilla.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# vite-amplify\n\nTemplate with Vite SSR + Express APIs + AWS Amplify Hosting.\n\n\u003ca href=\"https://vite-amplify.com\" rel=\"noopener noreferrer\" target=\"_blank\"\u003evite-amplify.com\u003c/a\u003e\n\n\u003ca href=\"https://www.youtube.com/watch?v=dsHQUgwkZ7s\" rel=\"noopener noreferrer\" target=\"_blank\"\u003e~4 mins from fork-to-finish for a successful deployment\u003c/a\u003e\n\u003c/div\u003e\n\n![vite-amplify-landing](https://github.com/user-attachments/assets/e8b425da-55e0-46d9-ace3-496972f12cb4)\n\n## Features\n\n* [Node](https://nodejs.org/docs)\n* [Yarn](https://classic.yarnpkg.com/en/docs)\n* [Vite](https://vitejs.dev/guide/)\n* [React](https://react.dev/reference/react)\n* [TypeScript](https://www.typescriptlang.org/docs/)\n* [Express](https://expressjs.com/en/4x/api.html)\n* [React Router](https://reactrouter.com/en/main)\n* [Tailwind](https://tailwindcss.com/docs)\n* [Eslint](https://eslint.org/docs/latest/)\n* [Prettier](https://prettier.io/docs/en/)\n* [Amplify Hosting](https://docs.aws.amazon.com/amplify/latest/userguide)\n\n## Other Libraries\n\n* [nodemon](https://github.com/remy/nodemon)\n* [tsx](https://github.com/privatenumber/tsx)\n* [dotenv](https://github.com/motdotla/dotenv?tab=readme-ov-file)\n* [svgr](https://github.com/gregberge/svgr)\n* [react-tweet](https://github.com/vercel/react-tweet)\n* [next-themes](https://github.com/pacocoursey/next-themes)\n\n## Development\n\nUsing yarn\n```bash\nyarn install      // install dependencies\nyarn dev          // run the development server\nyarn build        // build both client side and server side build\n```\n\n**Additional Commands**\n\n```bash\nyarn clean        // clean everything thats generated in the build/dev process\nyarn build:client // build the client side to dist/client\nyarn build:server // build the server side to dist/server\nyarn lint         // run eslint\nyarn format       // run prettier\n```\n\n## Amplify Hosting\n\nTo deploy to Amplify Hosting\n\n1. Create repository from template\n2. Deploy to AWS\n\n**Note:** set env variable `YARN_ENABLE_IMMUTABLE_INSTALLS=0` in the Amplify console\n\n![amplify-deployement](https://github.com/user-attachments/assets/82788a6e-afe4-4b4f-8a46-bbfe0d7cf772)\n\n## Build\n\nThe build outputs to `dist` folder. The build is split into two parts, the client side and the server side.\n\n```console\ndist\n├── client\n│   ├── assets\n│   │   ├── index-CtZNOJEh.css       25.46 kB │ gzip:     5.79 kB\n│   │   └── index-LE-jQ0iQ.js       262.24 kB │ gzip:    88.57 kB\n│   ├── favicon.ico                  14.73 kB │ gzip:     4.46 kB\n│   ├── index.html                     .56 kB │ gzip:      .36 kB\n│   └── robots.txt                     .06 kB │ gzip:      .08 kB\n└── server\n    ├── api\n    │   ├── api.d.ts\n    │   └── api.js\n    ├── entry-server.js\n    ├── favicon.ico\n    ├── robots.txt\n    ├── server.d.ts\n    ├── server.js\n    ├── tsconfig.node.tsbuildinfo\n    ├── vite.config.d.ts\n    └── vite.config.js\n\n5 directories, 15 files\n```\n\n## Amplify Build\n\n* `amplify.yml` is the build spec for Amplify Hosting ([AWS Docs](https://docs.aws.amazon.com/amplify/latest/userguide/build-settings.html))\n\n* `deploy-minifest.json` is the deployment spec and is what deploys the express api server ([AWS Docs](https://docs.aws.amazon.com/amplify/latest/userguide/ssr-deployment-specification.html))\n\n* `postbuild.sh` will take the build from `dist` and copy it over to the amplify build folder (`.amplify-hosting`) which results in ([AWS Docs](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-express-server.html)):\n\n```console\n.amplify-hosting\n├── compute\n│   └── default\n│       ├── client\n│       │   ├── assets\n│       │   │   ├── index-CtZNOJEh.css          25.46 kB │ gzip:     5.79 kB\n│       │   │   └── index-LE-jQ0iQ.js          262.24 kB │ gzip:    88.57 kB\n│       │   ├── favicon.ico                     14.73 kB │ gzip:     4.46 kB\n│       │   ├── index.html                        .56 kB │ gzip:      .36 kB\n│       │   └── robots.txt                        .06 kB │ gzip:      .08 kB\n│       ├── package.json\n│       └── server\n│           ├── api\n│           │   ├── api.d.ts\n│           │   └── api.js\n│           ├── entry-server.js\n│           ├── favicon.ico\n│           ├── robots.txt\n│           ├── server.d.ts\n│           ├── server.js\n│           ├── tsconfig.node.tsbuildinfo\n│           ├── vite.config.d.ts\n│           └── vite.config.js\n├── deploy-manifest.json\n└── static\n    ├── favicon.ico                             14.73 kB │ gzip:     4.46 kB\n    └── robots.txt                                .06 kB │ gzip:      .08 kB\n\n8 directories, 19 files\n```\n\n## Lighthouse\n\n\u003cimg width=\"344\" alt=\"100_91_96_100\" src=\"https://github.com/user-attachments/assets/aa73009d-2c8d-4b48-bd8c-231418a8f051\"\u003e\n\n¯\\\\_(ツ)_/¯ 🧂 [lighthouse_summary_100_91_96_100_july282024.pdf](https://github.com/user-attachments/files/16407666/lighthouse_summary_100_91_96_100_july282024.pdf)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapdilla%2Ftest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapdilla%2Ftest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapdilla%2Ftest/lists"}