{"id":24017433,"url":"https://github.com/nealarch01/payaco","last_synced_at":"2026-04-30T20:31:30.702Z","repository":{"id":127488833,"uuid":"570818217","full_name":"nealarch01/payaco","owner":"nealarch01","description":"💰 Transactions REST API developed in Go with Gorilla/Mux and PostgreSQL","archived":false,"fork":false,"pushed_at":"2022-12-20T01:43:40.000Z","size":9001,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T20:24:17.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/nealarch01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-11-26T08:17:11.000Z","updated_at":"2024-09-04T06:28:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9a8dbd3-023a-497e-baaf-3f82aed4f8b7","html_url":"https://github.com/nealarch01/payaco","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nealarch01/payaco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealarch01%2Fpayaco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealarch01%2Fpayaco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealarch01%2Fpayaco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealarch01%2Fpayaco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nealarch01","download_url":"https://codeload.github.com/nealarch01/payaco/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealarch01%2Fpayaco/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32476682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["go","golang","gorilla-mux","json","jwt","money-transfer","postgresql","rest-api"],"created_at":"2025-01-08T09:17:48.126Z","updated_at":"2026-04-30T20:31:30.678Z","avatar_url":"https://github.com/nealarch01.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payaco \nA simple money transfer REST API.\n### Disclaimer: This is all play/fake money!!\n\n\n# Table of Contents:\n1. [Technology Stack](#techstack)\n2. [Initializing the Database](#initializing-the-database)\n3. [Running the RestAPI](#running-the-rest-api)\n4. [API Documentation](#api-endpoints)\n5. [Useful Resources](#useful-resources)\n\n\n## Tech Stack\n- **Language:** Go\n- **Framework:** GorillaMux\n- **Database:** PostgreSQL (Version: 15.0)\n- **Additional Technologies:** JSON Web Tokens (JWTs)\n- **Architecture:** Model-View-Controller (MVC)\n\n### Additional Information:\n- The server does not use HTTPS\n- The default port (specified in main) is 8001\n- All endpoints except \"/\" will return application/json\n\n\n\n## Initializing the database\n- Create a PostgreSQL instance at any port (this project uses 4323)\n- A shell script ```setup.sh``` was provided and can be found in the database directory. Change the port number to your instance and run it. The shell file will create a database named \"development\", the tables, and populates it with sample data.\n\t- Note: this shell script uses zsh, if you use bash, modify the binary.\n\n\n\n## Running the REST API\nYou may use ```go run main.go``` (assuming you are inside \u003cb\u003e./rest-api\u003c/b\u003e directory). \nAlternatively, another shell script was provided that compiles the program into an executable and immediately runs if successful.\n\n\u003cb\u003eNote:\u003c/b\u003e navigate into ```./rest-api/pkg/models/database.go``` and change your connection string if you are using a different port or database name. \n\n\n## API Endpoints\n\nYou may find the endpoint documentations at:\n[Payaco API Documentation (Postman)](https://documenter.getpostman.com/view/21072555/2s8YsxtqoY)\u003cbr\u003e\n\n\n## Useful Resources:\n- [Go Rest API youtube](https://youtu.be/jFfo23yIWac)\n- [Gorilla/Mux](https://github.com/gorilla/mux#middleware)\n- [Go database/sql documentation](https://pkg.go.dev/database/sql)\n- [GoJWT Documentation](https://pkg.go.dev/github.com/golang-jwt/jwt/v4)\n- [Storing currency PostgresSQL](https://stackoverflow.com/questions/15726535/which-datatype-should-be-used-for-currency)\n- [URL Params](https://stackoverflow.com/questions/46045756/retrieve-optional-query-variables-with-gorilla-mux)\n- [Middleware](https://www.turing.com/kb/building-middleware-for-node-js)\n- [Sample data generator](https://www.mockaroo.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealarch01%2Fpayaco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnealarch01%2Fpayaco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealarch01%2Fpayaco/lists"}