{"id":22444587,"url":"https://github.com/ryand1996/sam-typescript-bootstrap","last_synced_at":"2025-09-10T19:42:24.816Z","repository":{"id":56007016,"uuid":"316043067","full_name":"RyanD1996/sam-typescript-bootstrap","owner":"RyanD1996","description":"NPM CLI module for creating a bootstrap for a TypeScript AWS SAM project","archived":false,"fork":false,"pushed_at":"2020-12-01T18:50:22.000Z","size":518,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T05:48:14.506Z","etag":null,"topics":["aws","cli","lambda","nodejs","npm","sam","sam-typescript-bootstrap","serverless","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/RyanD1996.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}},"created_at":"2020-11-25T20:08:17.000Z","updated_at":"2020-12-18T13:03:01.000Z","dependencies_parsed_at":"2022-08-15T11:20:10.331Z","dependency_job_id":null,"html_url":"https://github.com/RyanD1996/sam-typescript-bootstrap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanD1996%2Fsam-typescript-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanD1996%2Fsam-typescript-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanD1996%2Fsam-typescript-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanD1996%2Fsam-typescript-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RyanD1996","download_url":"https://codeload.github.com/RyanD1996/sam-typescript-bootstrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832607,"owners_count":20679701,"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":["aws","cli","lambda","nodejs","npm","sam","sam-typescript-bootstrap","serverless","typescript"],"created_at":"2024-12-06T03:08:52.016Z","updated_at":"2025-03-27T10:43:00.669Z","avatar_url":"https://github.com/RyanD1996.png","language":"TypeScript","readme":"### Sam-typescript-bootstrap\n\n![Demo](https://github.com/RyanD1996/sam-typescript-bootstrap/blob/main/demo.gif)\n\nThis is a CLI npm package for creating a simple AWS Serverless project using the [SAM](https://aws.amazon.com/serverless/sam/). The package will ask a series of questions and generate the required files and configuration that makes up a project with the following features:\n\n- Typescript to JS transpiling, using webpack to create a `dist` folder containing the JS source code for the project to be deployed.\n- Unit testing library (Mocha/Chai/Sinon OR Jest) and sample unit test file setup.\n- Cloudformation template provisioning a simple lambda\n- Simple API [Swagger](https://swagger.io/) documentation for the simple lambda that is created\n\n#### Using the package\n\nInstalling the package globally\n`npm i -g sam-typescript-bootstrap`\n\nRun the `sam-bootstrap` command to start the CLI package, follow the instructions and the files will be generated in the directory that the CLI package was started in.\n\nOnce the files are generated, it is important to install the packages:\n`npm i`\n\nThen build the bootstrap files for the example lambda:\n`npm run build:local`\n\nOnce the the build is complete run the following command to start the application:\n`npm run start:local`\n\nAt this point you should be able to test the lambda is running correctly by performing a GET to the local endpoint that the lambda is running on, which will be displayed on the CLI.\n\nFor example:\n`GET: http://127.0.0.1:3000/test`\n\nWill return a 200 response:\n\n    {\n      \"message\": \"OK\"\n    }\n\n#### Notes/Todo\n\n- Add ability to generate a simple frontend react-create-app project using AWS SAM\n- Clean up the source code of this project, as it is still a WIP.\n- Add custom domain for API.\n- Automation tests (using [cucumber](https://cucumber.io/docs/cucumber/))\n\nAny suggestions on features/improvements are welcome.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryand1996%2Fsam-typescript-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryand1996%2Fsam-typescript-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryand1996%2Fsam-typescript-bootstrap/lists"}