{"id":22449704,"url":"https://github.com/alterra-greeve/backend-capstone","last_synced_at":"2025-07-28T09:06:12.157Z","repository":{"id":242646370,"uuid":"792143324","full_name":"Alterra-Greeve/backend-capstone","owner":"Alterra-Greeve","description":"Capstone Project SIB Batch 6 x Alterra Academy ","archived":false,"fork":false,"pushed_at":"2024-06-24T02:14:07.000Z","size":1058,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"production","last_synced_at":"2025-05-31T21:51:09.176Z","etag":null,"topics":["cloudrun","golang","gorm","midtrans","websocket"],"latest_commit_sha":null,"homepage":"https://api.greeve.store","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/Alterra-Greeve.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":"2024-04-26T04:13:27.000Z","updated_at":"2024-11-21T12:50:40.000Z","dependencies_parsed_at":"2024-06-17T16:52:04.725Z","dependency_job_id":"edd18702-833a-4c43-ada6-0763b23c53ee","html_url":"https://github.com/Alterra-Greeve/backend-capstone","commit_stats":null,"previous_names":["alterra-greeve/backend-capstone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Alterra-Greeve/backend-capstone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterra-Greeve%2Fbackend-capstone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterra-Greeve%2Fbackend-capstone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterra-Greeve%2Fbackend-capstone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterra-Greeve%2Fbackend-capstone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alterra-Greeve","download_url":"https://codeload.github.com/Alterra-Greeve/backend-capstone/tar.gz/refs/heads/production","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alterra-Greeve%2Fbackend-capstone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267489790,"owners_count":24095804,"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-07-28T02:00:09.689Z","response_time":68,"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":["cloudrun","golang","gorm","midtrans","websocket"],"created_at":"2024-12-06T05:11:05.130Z","updated_at":"2025-07-28T09:06:12.102Z","avatar_url":"https://github.com/Alterra-Greeve.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/Alterra-Greeve/.github/assets/133726246/3a58ead2-7977-4f31-8f29-bb54e55dc34b\" width=\"350\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eGreeve\u003c/b\u003e\u003cbr\u003e\n  Final Project Capstone Alterra Academy\u003cbr\u003e\n  \u003ca href=\"https://api.greeve.store/\"\u003eExplore the docs Open API\u003c/a\u003e \n  \u003cbr\u003e\u003cbr\u003e\n\u003c/p\u003e\n\n# About Project\n\u003cp align=\"justify\"\u003e\n  Greeve is an innovative app that aims to increase user awareness and participation in environmental conservation and make it easier to purchase eco-friendly goods and equipment. The app not only offers a platform to purchase environmental goods and equipment, but also provides information on the impact of users' activities on the environment as well as how to measure and reduce that impact. The following is greeve documentation from the backend using golang programming language.\n\u003c/p\u003e \n\n### Features available in this project:\n| Feature           | Method              | Users                   |          Admin                           |\n| ----------------- | ------------------- | ----------------------- | ---------------------------------------- |\n| USERS FEATURE                                                                                                |\n| Register          | POST                | Yes                     | No                                       |\n| Login             | POST                | Yes                     | Yes                                      |\n| Reset Password    | POST                | Yes                     | No                                       |\n| Get All Users     | GET                 | No                      | Yes                                      |\n| Edit Self Profile | PUT                 | Yes                     | Yes                                      |\n| Manage User       | PUT                 | No                      | Yes                                      |\n| Delete User       | DELETE              | Yes                     | Yes                                      |\n| Product  FEATURE                                                                                             |\n| Create Data Product | POST                | No                      | Yes                                      |\n| Edit Data Product   | PUT                 | No                      | Yes                                      |\n| Create Data Product | POST                | No                      | Yes                                      |\n| Get Product         | GET                 | Yes                     | Yes                                      |\n| Get Product by ID   | GET                 | Yes                     | Yes                                      |\n| View Item from Shooping cart       | GET                 | Yes                     | No                                      |\n| Add Item to Shooping cart          | POST                | Yes                     | No                                      |\n| Edit Item From Shooping cart       | PUT                 | Yes                     | No                                      |\n| Delete Item From Shooping cart     | DELETE              | Yes                     | No                                      |\n| Transaction  FEATURE                                                                                             |\n| Get All Transaction Data For User  | GET                 | Yes                     | Yes                                     |\n| Get Transaction Data For User by ID| GET                 | Yes                     | Yes                                     |\n| Create Transaction                 | POST                | Yes                     | No                                      |\n| Cancel Transaction                 | PUT                 | Yes                     | No                                      |\n| Payment For Transaction            | POST                | Yes                     | No                                      |\n| Challenge Feature                                                                                                            |\n| View All Challenge                 | GET                 | Yes                     | Yes                                     |\n| Get Challenge by ID                | GET                 | Yes                     | Yes                                     |\n| Get Challenge that has been joined                | GET                 | Yes                     | No                                  |\n| Parcitipate Challenge              | POST                | Yes                     | No                                      |\n| Confirmation Join Challenge        | POST                | Yes                     | No                                      |\n| Viev Monthly Leaderboard           | GET                 | Yes                     | Yes                                     |\n| Forum Feature                                                                                                                |\n| Get All Forum        | GET                | Yes                     | Yes                                      |\n| Get Forum by Id      | GET                | Yes                     | Yes                                      |\n| Create Forum         | POST               | Yes                     | No                                       |\n| Edit Forum           | PUT                | Yes                     | No                                       |\n| Delete Forum         | DELETE             | Yes                     | Yes                                      |\n| Create Message       | POST               | Yes                     | No                                       |\n| Edit Message         | POST               | Yes                     | No                                       |\n| Get Message by Id    | GET                | No                      | Yes                                      |\n| Delete Message       | DELETE             | Yes                     | Yes                                      |\n| Impact Category Feature                                                                                                |\n| Get All Impact Category       | GET                | No                     | Yes                                      |\n| Create Impact Category        | POST               | No                     | Yes                                      |\n| Edit Impact Category          | PUT                | No                     | Yes                                      |\n| Delete Impact Category        | DELETE             | No                     | Yes                                      |\n| Voucher Feature                                                                                                  |\n| Get All Voucher       | GET                  | Yes                    | Yes                                      |\n| Create Voucher        | POST                 | No                     | Yes                                      |\n| Edit Voucher          | PUT                  | No                     | Yes                                      |\n| Delete Voucher        | DELETE               | No                     | Yes                                      |\n| Dashboard Feature                                                                                                    |\n| Get Dashboard              | GET                  | No                    | Yes                                      |\n| Get Orders Product         | GET                  | No                    | Yes                                      |\n| Get Orders Challenge       | GET                  | No                    | Yes                                      |\n\n# Built With\n- \u003ca href=\"https://github.com/golang\"\u003eGolang\u003c/a\u003e\n- \u003ca href=\"https://github.com/labstack/echo\"\u003eEcho\u003c/a\u003e\n- \u003ca href=\"https://github.com/go-gorm/gorm\"\u003eGorm\u003c/a\u003e\n- \u003ca href=\"https://github.com/mysql\"\u003eMySql\u003c/a\u003e\n# Getting Started\n## How to Use\nClone the project\n\n```bash\n  git clone https://github.com/Alterra-Greeve/backend-capstone.git\n```\nInstall required dependencies\n```bash\n  go mod tidy\n```\nSetting Environmental Variable on `.env` file\n```bash\n  DB_HOST=\n  DB_PORT=\n  DB_USER=\n  DB_PASS=\n  DB_NAME=\n  \n  SMTP_USER=\n  SMTP_PASS=\n  SMTP_HOST=\n  SMTP_PORT=\n  \n  JWT_SECRET=\n  \n  PROJECT_ID=\n  BUCKET_NAME=\n  GOOGLE_APPLICATION_CREDENTIALS=\n  \n  MIDTRANS_CLIENT_KEY=\n  MIDTRANS_SERVER_KEY=\n```\nRun `main.go` file\n```bash\ngo run main.go\n```\nRun the endpoints as in the swagger documentation\n\n\n\n\n# System Diagram and Architecture\n## ERD\n\u003cdiv style=\"border: 1px solid #000; padding: 10px; display: inline-block;\"\u003e\n  \u003cimg src=\"https://github.com/Alterra-Greeve/backend-capstone/assets/133726246/c6ddfcd2-2c8c-4d1e-a7c8-2587ec42adf6\" alt=\"ERD_Capstone drawio\"\u003e\n\u003c/div\u003e\n\n## HLA\n![HLA Capstone (3)](https://github.com/Alterra-Greeve/backend-capstone/assets/133726246/e6b4627a-7bfc-40c9-bd09-7b33ee583a22)\n\n# Contact \nLink Project: \u003cbr\u003e\n\u003ca href=\"https://github.com/Alterra-Greeve\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Greeve-black?logo=github\" alt=\"GitHub Badge\"\u003e\n\u003c/a\u003e\n\u003cbr\u003e\nAPI Documentation: \u003cbr\u003e\n\u003ca href=\"https://api.greeve.store/#/\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Greeve-darkgreen?logo=swagger\u0026logoColor=dark\" alt=\"Swagger Badge\"\u003e\n\u003c/a\u003e\n## Contributor\n**Nur Faid Praseto** \n\u003cbr\u003e\n[![Nur Faid Prasetyo - LinkedIn](https://img.shields.io/badge/Nur_Faid_Prasetyo-blue?logo=linkedin)](https://www.linkedin.com/in/kzquandary)\n[![Nur Faid Prasetyo - GitHub](https://img.shields.io/badge/Nur_Faid_Prasetyo-black?logo=github)](https://github.com/kzquandary)\n\n**Chandra Wahyu Rafialdi** \n\u003cbr\u003e\n[![Chandra Wahyu Rafialdi - LinkedIn](https://img.shields.io/badge/Chandra_Wahyu_Rafialdi-blue?logo=linkedin)](https://www.linkedin.com/in/chandra-wahyu-r-8875b3297/)\n[![Chandra Wahyu Rafialdi - GitHub](https://img.shields.io/badge/Chandra_Wahyu_Rafialdi-black?logo=github)](https://github.com/ChandraWahyuR)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falterra-greeve%2Fbackend-capstone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falterra-greeve%2Fbackend-capstone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falterra-greeve%2Fbackend-capstone/lists"}