{"id":22379661,"url":"https://github.com/luispagarcia/serverless-golang-api","last_synced_at":"2025-10-03T22:02:22.421Z","repository":{"id":124196491,"uuid":"136358633","full_name":"LuisPaGarcia/serverless-golang-api","owner":"LuisPaGarcia","description":"Golang api example, using serverless framework, AWS API Gateway and Lambda functions","archived":false,"fork":false,"pushed_at":"2018-06-06T20:59:10.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T00:41:22.496Z","etag":null,"topics":["api","get","go","golang","post","serverless"],"latest_commit_sha":null,"homepage":"","language":"Go","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/LuisPaGarcia.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-06-06T16:47:56.000Z","updated_at":"2018-06-08T14:05:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"c44995b9-b8aa-4b67-8cfe-b564a03d8980","html_url":"https://github.com/LuisPaGarcia/serverless-golang-api","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/LuisPaGarcia%2Fserverless-golang-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisPaGarcia%2Fserverless-golang-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisPaGarcia%2Fserverless-golang-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisPaGarcia%2Fserverless-golang-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuisPaGarcia","download_url":"https://codeload.github.com/LuisPaGarcia/serverless-golang-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245718782,"owners_count":20661161,"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","get","go","golang","post","serverless"],"created_at":"2024-12-04T23:10:56.414Z","updated_at":"2025-10-03T22:02:17.395Z","avatar_url":"https://github.com/LuisPaGarcia.png","language":"Go","readme":"# serverless-golang-api\nGolang api example\n\nHow to create two functions to POST and GET info with golang, aws and serverless framework.\n\n### Prereq\n\n1. You'll need NPM installed. [How to install NPM](https://www.npmjs.com/get-npm).\n1. You'll need serverless framework installed. \n\n```sh\n$ npm i serverless -g\n```\n\n3. You'll need to have your serverless credentials added, you can see this video [Set Serverless cretenials 4min](https://www.youtube.com/watch?v=HSd9uYj2LJA)\n\n### Ready\n\nMacOS \u0026 Linux\n```sh\n$ git clone https://github.com/LuisPaGarcia/serverless-golang-api.git\n$ cd serverless-golang-api\n$ make \n$ sls deploy\n```\n\nWindows\n```cmd\n\u003e git clone https://github.com/LuisPaGarcia/serverless-golang-api.git\n\u003e cd serverless-golang-api\n\u003e dep ensure\n\u003e go build -s -w -o bin/hello hello/main.go\n\u003e go build -s -w -o bin/get get/main.go\n\u003e sls deploy\n```\n\nRestult\n```sh\nendpoints:\n  POST - https://ajshdjashdjaskh.execute-api.us-east-3.amazonaws.com/dev/hello\n  GET - https://ajshdjashdjaskh.execute-api.us-east-3.amazonaws.com/dev/get\nfunctions:\n  hello: myservice-dev-hello\n  get: myservice-dev-get\n```\n\nYou can test yout endpoints with [Postman](https://www.getpostman.com/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluispagarcia%2Fserverless-golang-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluispagarcia%2Fserverless-golang-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluispagarcia%2Fserverless-golang-api/lists"}