{"id":21541815,"url":"https://github.com/bencoderus/space-notes-api","last_synced_at":"2025-03-17T22:59:40.465Z","repository":{"id":104120896,"uuid":"604363071","full_name":"bencoderus/space-notes-api","owner":"bencoderus","description":"Building a notes API using Serverless Framework(AWS Lambda, DynamoDB, API gateway)","archived":false,"fork":false,"pushed_at":"2023-05-03T19:36:50.000Z","size":757,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T08:31:26.331Z","etag":null,"topics":["api-gateway","aws","aws-lambda","lambda","serverless","serverless-framework"],"latest_commit_sha":null,"homepage":"","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/bencoderus.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-02-20T22:40:11.000Z","updated_at":"2023-05-07T10:37:00.000Z","dependencies_parsed_at":"2024-11-24T05:17:53.484Z","dependency_job_id":null,"html_url":"https://github.com/bencoderus/space-notes-api","commit_stats":null,"previous_names":["bencoderus/space-notes-api","bencoderus/serverless-notes-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencoderus%2Fspace-notes-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencoderus%2Fspace-notes-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencoderus%2Fspace-notes-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencoderus%2Fspace-notes-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bencoderus","download_url":"https://codeload.github.com/bencoderus/space-notes-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244124179,"owners_count":20401683,"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":["api-gateway","aws","aws-lambda","lambda","serverless","serverless-framework"],"created_at":"2024-11-24T05:07:44.012Z","updated_at":"2025-03-17T22:59:40.443Z","avatar_url":"https://github.com/bencoderus.png","language":"JavaScript","readme":"\u003c!--\ntitle: 'AWS Simple HTTP Endpoint example in NodeJS'\ndescription: 'This template demonstrates how to make a simple HTTP API with Node.js running on AWS Lambda and API Gateway using the Serverless Framework.'\nlayout: Doc\nframework: v3\nplatform: AWS\nlanguage: nodeJS\nauthorLink: 'https://github.com/serverless'\nauthorName: 'Serverless, inc.'\nauthorAvatar: 'https://avatars1.githubusercontent.com/u/13742415?s=200\u0026v=4'\n--\u003e\n\n# Serverless Framework Node HTTP API on AWS\n\nThis template demonstrates how to make a simple HTTP API with Node.js running on AWS Lambda and API Gateway using the Serverless Framework.\n\nThis template does not include any kind of persistence (database). For more advanced examples, check out the [serverless/examples repository](https://github.com/serverless/examples/) which includes Typescript, Mongo, DynamoDB and other examples.\n\n## Usage\n\n### Deployment\n\n```\n$ serverless deploy\n```\n\nAfter deploying, you should see output similar to:\n\n```bash\nDeploying aws-node-http-api-project to stage dev (us-east-1)\n\n✔ Service deployed to stack aws-node-http-api-project-dev (152s)\n\nendpoint: GET - https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com/\nfunctions:\n  hello: aws-node-http-api-project-dev-hello (1.9 kB)\n```\n\n_Note_: In current form, after deployment, your API is public and can be invoked by anyone. For production deployments, you might want to configure an authorizer. For details on how to do that, refer to [http event docs](https://www.serverless.com/framework/docs/providers/aws/events/apigateway/).\n\n### Invocation\n\nAfter successful deployment, you can call the created application via HTTP:\n\n```bash\ncurl https://xxxxxxx.execute-api.us-east-1.amazonaws.com/\n```\n\nWhich should result in response similar to the following (removed `input` content for brevity):\n\n```json\n{\n  \"message\": \"Go Serverless v2.0! Your function executed successfully!\",\n  \"input\": {\n    ...\n  }\n}\n```\n\n### Local development\n\nYou can invoke your function locally by using the following command:\n\n```bash\nserverless invoke local --function hello\n```\n\nWhich should result in response similar to the following:\n\n```\n{\n  \"statusCode\": 200,\n  \"body\": \"{\\n  \\\"message\\\": \\\"Go Serverless v3.0! Your function executed successfully!\\\",\\n  \\\"input\\\": \\\"\\\"\\n}\"\n}\n```\n\n\nAlternatively, it is also possible to emulate API Gateway and Lambda locally by using `serverless-offline` plugin. In order to do that, execute the following command:\n\n```bash\nserverless plugin install -n serverless-offline\n```\n\nIt will add the `serverless-offline` plugin to `devDependencies` in `package.json` file as well as will add it to `plugins` in `serverless.yml`.\n\nAfter installation, you can start local emulation with:\n\n```\nserverless offline\n```\n\nTo learn more about the capabilities of `serverless-offline`, please refer to its [GitHub repository](https://github.com/dherault/serverless-offline).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencoderus%2Fspace-notes-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbencoderus%2Fspace-notes-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencoderus%2Fspace-notes-api/lists"}