{"id":34171538,"url":"https://github.com/internpulse/renergy-hub-go-backend","last_synced_at":"2026-03-12T06:39:29.461Z","repository":{"id":262293657,"uuid":"886604486","full_name":"InternPulse/renergy-hub-go-backend","owner":"InternPulse","description":"Go Backend API for Renergy Hub, An innovative Cleantech web platform designed to address Nigeria’s persistent electric power challenges by empowering users to optimize renewable energy consumption.","archived":false,"fork":false,"pushed_at":"2024-12-10T09:32:00.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"dev","last_synced_at":"2025-12-18T07:59:48.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://renergyhubgo.osinachi.me/swagger/index.html","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/InternPulse.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-11-11T09:23:01.000Z","updated_at":"2024-12-16T09:38:02.000Z","dependencies_parsed_at":"2024-11-11T17:30:27.415Z","dependency_job_id":"b1e153f9-1e3a-4171-8ebc-e3a79eab5d1d","html_url":"https://github.com/InternPulse/renergy-hub-go-backend","commit_stats":null,"previous_names":["internpulse/renergy-hub-go-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/InternPulse/renergy-hub-go-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InternPulse%2Frenergy-hub-go-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InternPulse%2Frenergy-hub-go-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InternPulse%2Frenergy-hub-go-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InternPulse%2Frenergy-hub-go-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InternPulse","download_url":"https://codeload.github.com/InternPulse/renergy-hub-go-backend/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InternPulse%2Frenergy-hub-go-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30417526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T04:41:02.746Z","status":"ssl_error","status_checked_at":"2026-03-12T04:40:12.571Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-12-15T11:22:22.826Z","updated_at":"2026-03-12T06:39:29.447Z","avatar_url":"https://github.com/InternPulse.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Renergy Hub Go Backend API\n\nThis is the notification service for Renergyhub built in Go\n\n## Project Overview\n\nLive link: is at http://renergyhub.osinachi.me\n\nDoc link: https://renergyhub.osinachi.me/api/docs/index.html\n\n## Installation Instructions\n\n### Prerequisites\n\nBefore setting up the project locally, ensure you have the following prerequisites installed:\n\n- [Go](https://go.dev/dl/) (\u003e=1.20).\n- A Database System (e.g., PostgreSQL, MySQL, SQLite)\n\n### How to run API Locally\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/InternPulse/renergy-hub-go-backend.git\n```\n\n2. Change into the parent directory:\n\n```bash\ncd renergy-hub-go-backend\n```\n\n3. Create the .env file from the .env.example file\n\n```sh\ncp .env.example .env\n```\n\n4. Set appropriate values for the following Compulsory Environment Variables in the .env file:\n\n```.env\nPORT=7500\nDB_HOST=\"localhost\"\nDB_PORT=\"5432\"\nDB_NAME=\"renergybackend\"\nDB_USER=\"renergyuser\"\nDB_PASSWORD=\"go-is-cool\"\nDB_SSL_MODE=\"require\"\nJWT_SECRET=\"\"\n```\n\n5. Install the App dependencies:\n\n```bash\ngo get\n```\n\n5. Start the App:\n\n```bash\ngo run main.go\n```\n\nThe API should now be running locally at [http://localhost:7500/](http://localhost:7500/).\n\n## Features\n\n1. Send order created notification\n2. Send email verification notification\n3. Send order shipped notification\n\n# Commit Standards\n\n## Branches\n\n- **dev** -\u003e pr this branch for everything `backend` related\n- **main** -\u003e **dont touch** this branch, this is what is running in production!\n\n## Contributions\n\nproperty-hive-backend-two is open to contributions, but I recommend creating an issue or replying in a comment to let us know what you are working on first that way we don't overwrite each other.\n\n## Contribution Guidelines\n\n1. Clone the repo `git clone https://github.com/InternPulse/property-hive-backend-two.git`.\n2. Open your terminal \u0026 set the origin branch: `git remote add origin https://github.com/InternPulse/property-hive-backend-two.git`\n3. Pull origin `git pull origin dev`\n4. Create a new branch for the task you were assigned to, eg `TicketNumber/(Feat/Bug/Fix/Chore)/Ticket-title` : `git checkout -b BA-001/Feat/Sign-Up-from`\n5. After making changes, do `git add .`\n6. Commit your changes with a descriptive commit message : `git commit -m \"your commit message\"`.\n7. To make sure there are no conflicts, run `git pull origin dev`.\n8. Push changes to your new branch, run `git push -u origin feat-csv-parser`.\n9. Create a pull request to the `dev` branch not `main`.\n10. Ensure to describe your pull request.\n11. \u003e If you've added code that should be tested, add some test examples.\n\n# Merging\n\nUnder any circumstances should you merge a pull request on a specific branch to the `dev` or `main` branch\n\n### _Commit CheatSheet_\n\n| Type     |                          | Description                                                                                                 |\n| -------- | ------------------------ | ----------------------------------------------------------------------------------------------------------- |\n| feat     | Features                 | A new feature                                                                                               |\n| fix      | Bug Fixes                | A bug fix                                                                                                   |\n| docs     | Documentation            | Documentation only changes                                                                                  |\n| style    | Styles                   | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)     |\n| refactor | Code Refactoring         | A code change that neither fixes a bug nor adds a feature                                                   |\n| perf     | Performance Improvements | A code change that improves performance                                                                     |\n| test     | Tests                    | Adding missing tests or correcting existing tests                                                           |\n| build    | Builds                   | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)         |\n| ci       | Continuous Integrations  | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) |\n| chore    | Chores                   | Other changes that don't modify, backend or test files                                                      |\n| revert   | Reverts                  | Reverts a previous commit                                                                                   |\n\n\u003e _Sample Commit Messages_\n\n- `chore: Updated README file`:= `chore` is used because the commit didn't make any changes to the backend or test folders in any way.\n- `feat: Added plugin info endpoints`:= `feat` is used here because the feature was non-existent before the commit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finternpulse%2Frenergy-hub-go-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finternpulse%2Frenergy-hub-go-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finternpulse%2Frenergy-hub-go-backend/lists"}