{"id":18546107,"url":"https://github.com/huksley/todo-react-ssr-serverless","last_synced_at":"2025-09-23T04:55:07.636Z","repository":{"id":145829175,"uuid":"147960482","full_name":"huksley/todo-react-ssr-serverless","owner":"huksley","description":"Todo app example with ReactJS + Server Side Rendering + Serverless","archived":false,"fork":false,"pushed_at":"2019-03-21T09:44:32.000Z","size":289,"stargazers_count":11,"open_issues_count":2,"forks_count":31,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T12:50:07.034Z","etag":null,"topics":["aws","aws-lambda","dynamodb","reactjs","serverless","ssr","webpack"],"latest_commit_sha":null,"homepage":"https://todo.ruslan.org","language":"JavaScript","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/huksley.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":"2018-09-08T18:44:23.000Z","updated_at":"2024-05-08T13:17:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc0b8045-8dbd-4756-ab72-b6fb62b66a57","html_url":"https://github.com/huksley/todo-react-ssr-serverless","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huksley/todo-react-ssr-serverless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huksley%2Ftodo-react-ssr-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huksley%2Ftodo-react-ssr-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huksley%2Ftodo-react-ssr-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huksley%2Ftodo-react-ssr-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huksley","download_url":"https://codeload.github.com/huksley/todo-react-ssr-serverless/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huksley%2Ftodo-react-ssr-serverless/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276518810,"owners_count":25656497,"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-09-23T02:00:09.130Z","response_time":73,"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":["aws","aws-lambda","dynamodb","reactjs","serverless","ssr","webpack"],"created_at":"2024-11-06T20:23:38.710Z","updated_at":"2025-09-23T04:55:07.630Z","avatar_url":"https://github.com/huksley.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Splitting + SSR + Serverless + DynamoDB with React Router demo\n\nForked from https://github.com/gdborton/rrv4-ssr-and-code-splitting.\n\nThis is a demo repository set up to demo code splitting by route on React Router \nwith server rendered React components.\n\nAfter you fetch server rendered HTML routes start fire __locally__.\n\n## Preparing for demo\n\nBefore running the demo, you must install a number of components\n\n  * AWS cli \u0026amp; proper credentials\n  * servlerless (`npm install -g serverless`)\n\nAlso, either create DynamoDB table manually or execute first time deploy: \n\n```bash\nnpm run sls:deploy\n```\n\n## Running the demo\n\n```bash\ngit clone https://github.com/huksley/todo-react-ssr-serverless\ncd todo-react-ssr-serverless\nnpm install\nnpm run build\nAWS_REGION=eu-west-1 npm start\nopen http://localhost:3000\n```\n\n## Running in serverless local\n\nRuns `serverless offline` with webpack support.\n\n```bash\nnpm run sls\n```\n\n## Running in AWS\n\nCreates DynamoDB table, IAM role, deploys Lambda and sets up API Gateway. If custom domain specified, deploys app under this custom domain (first deploy might take some time)\n\n```bash\nnpm run sls:deploy\n```\n\nFor proper paths, you __MUST__ define custom domain.\n\n  * Create/transfer yourdomain.com in/to Route53\n  * Verify yourdomain.com ownership\n  * Create *.yourdomain.com certificate request in CloudFront Global (N. Virginia)\n  * Wait for it verification\n  \nRun once to deploy domain:\n\n```\nCUSTOM_DOMAIN=todo.domain.com CUSTOM_DOMAIN_ENABLED=true API_URL=https://todo.yourdomain.com/api npm run sls create_domain\n```\n\nTo properly serve assets you can use bucket for static files (created automatically by serverless)\n\n```\nPUBLIC_PATH=https://s3-eu-west-1.amazonaws.com/todocdn.yourdomain.com/ \\\n  CDN_BUCKET=todocdn.yourdomain.com \\\n  CUSTOM_DOMAIN=todo.yourdomain.com \\\n  CUSTOM_DOMAIN_ENABLED=true \\\n  API_URL=https://todo.yourdomain.com/api \\\n  npm run sls:deploy\n```\n\n## Isomorphic!\n\nThanks to matchRoutes/renderRoutes from `react-router-config` after HTML is received, route state are restored and \nall links start to work client side. \n\nFIXME: This isomorphic/universal stuff should be updated according to recent improvements in react-router.\n\n![todo](./todo.png)\n\n## Things of note:\n\n - The contents of this repo were based on the [TodoMVC code](https://github.com/tastejs/todomvc/tree/master/examples/react) originally written by [Pete Hunt](https://github.com/petehunt).\n - Upgraded to webpack v4 comparing to upstream repo\n - We have 3 webpack configs:\n   - One for server\n   - Another for client\n   - Third one (./webpack.serverless.js) for running in serverless\n - The server starts with empty data. Run `curl -X POST http://localhost:3000/api/init` to load initial data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuksley%2Ftodo-react-ssr-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuksley%2Ftodo-react-ssr-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuksley%2Ftodo-react-ssr-serverless/lists"}