{"id":19149397,"url":"https://github.com/restuwahyu13/express-payment-gateway","last_synced_at":"2025-05-07T04:43:01.189Z","repository":{"id":114455671,"uuid":"325935938","full_name":"restuwahyu13/express-payment-gateway","owner":"restuwahyu13","description":"express payment gateway rest api","archived":false,"fork":false,"pushed_at":"2023-03-26T21:43:54.000Z","size":441,"stargazers_count":21,"open_issues_count":0,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T04:42:55.206Z","etag":null,"topics":["docker","express","express-app","express-payment","nodejs","payment-gateway","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/restuwahyu13.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,"zenodo":null}},"created_at":"2021-01-01T07:28:19.000Z","updated_at":"2025-01-08T14:02:23.000Z","dependencies_parsed_at":"2023-06-08T00:30:44.352Z","dependency_job_id":null,"html_url":"https://github.com/restuwahyu13/express-payment-gateway","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/restuwahyu13%2Fexpress-payment-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restuwahyu13%2Fexpress-payment-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restuwahyu13%2Fexpress-payment-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restuwahyu13%2Fexpress-payment-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/restuwahyu13","download_url":"https://codeload.github.com/restuwahyu13/express-payment-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252816517,"owners_count":21808702,"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":["docker","express","express-app","express-payment","nodejs","payment-gateway","typescript"],"created_at":"2024-11-09T08:08:02.146Z","updated_at":"2025-05-07T04:43:01.178Z","avatar_url":"https://github.com/restuwahyu13.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Express Payment Gateway Api\n\n### Features\n\n- [x] Auth with JWT and Auth with Role Permission\n- [x] Advanced Login And Register\n- [x] Refresh Token JWT\n- [x] Confirmation Email Activation, Reset Password and more\n- [x] Transfer Money To Another Users\n- [x] Integration With Docker\n- [x] Encryption Password\n- [x] Build Automation Using Makefile\n- [x] Any More\n\n### Docker Image Registry\n\n```sh\ndocker pull 705471/express-payment:\u003ctag\u003e\n```\n\n### Docker Container\n\n- **express-app** on 3000:3000\n- **postgres-db** on 5432:5432\n- **postgres-admin** on 8080:80\n\n### Docker Command Makefile\n\n- Docker Compose Up\n\n  ```sh\n  make cpup env=dev or make cpup env=prod\n  ```\n\n- Docker Compose Down\n\n  ```sh\n  make cpdown\n  ```\n\n- Dockerfile Build\n\n  ```sh\n  make dbd or make dbp\n  ```\n\n- Application Running\n  ```sh\n  make dev or make prod\n  ```\n\n### Express Container Default Environment\n\n- ### Production\n\n  - PG_URI=postgres://restuwahyu13:restuwahyu13@db:5432/payment\n\n- ### Development\n\n  - PG_HOST = db\n  - PG_USERNAME = restuwahyu13\n  - PG_PASSWORD = restuwahyu13\n  - PG_DATABASE = payment\n  - PG_PORT = 5432\n\n### Postgres Container Default Environment\n\n- POSTGRES_HOST=db\n- POSTGRES_USER=restuwahyu13\n- POSTGRES_PASSWORD=restuwahyu13\n- POSTGRES_DB=payment\n\n### Deploy Docker Container On Heroku\n\n- goto [Clever Cloud](https://www.clever-cloud.com) create your cloud database\n- docker build -t restuwahyu13/express-payment .\n- heroku container:login\n- heroku create **{ website-name }**\n- docker tag restuwahyu13/express-payment registry.heroku.com/**{ heroku-website-name }**/web\n- docker push {heroku-website-name}\n- heroku container:release web -a **{ heroku-website-name }**\n- heroku open -a **{ heroku-website-name }**\n- heroku logs -a **{ heroku-website-name }** --tail\n\n### Rest API Endpoint\n\n| Name              | Endpoint                         | Method |\n| ----------------- | -------------------------------- | ------ |\n| **User**          |                                  |        |\n| Register          | /api/v1/users/register           | POST   |\n| Login             | /api/v1/users/login              | POST   |\n| Activation        | /api/v1/users/activation/:id     | GET    |\n| Resend            | /api/v1/users/resend-activation  | POST   |\n| Forgot            | /api/v1/users/forgot-password    | POST   |\n| Reset             | /api/v1/users/reset-password/:id | POST   |\n| **admin**         |                                  |        |\n| Create            | /api/v1/admins                   | POST   |\n| Results           | /api/v1/admins                   | GET    |\n| Result            | /api/v1/admins/:id               | GET    |\n| Delete            | /api/v1/admins/:id               | DELETE |\n| Update            | /api/v1/admins/:id               | PUT    |\n| **Topup**         |                                  |        |\n| Create            | /api/v1/topups                   | POST   |\n| Results           | /api/v1/topups                   | GET    |\n| Result            | /api/v1/topups/:id               | GET    |\n| Delete            | /api/v1/topups/:id               | DELETE |\n| Update            | /api/v1/topups/:id               | PUT    |\n| **Withdraw**      |                                  |        |\n| Create            | /api/v1/withdraw                 | POST   |\n| Results           | /api/v1/withdraw                 | GET    |\n| Result            | /api/v1/withdraw/:id             | GET    |\n| Delete            | /api/v1/withdraw/:id             | DELETE |\n| Update            | /api/v1/withdraw/:id             | PUT    |\n| **Transfer**      |                                  |        |\n| Create            | /api/v1/transfer                 | POST   |\n| Results           | /api/v1/transfer                 | GET    |\n| Result            | /api/v1/transfer/:id             | GET    |\n| Delete            | /api/v1/transfer/:id             | DELETE |\n| Update            | /api/v1/transfer/:id             | PUT    |\n| **Saldo**         |                                  |        |\n| Create            | /api/v1/saldo                    | POST   |\n| Results           | /api/v1/saldo                    | GET    |\n| Result            | /api/v1/saldo/:id                | GET    |\n| Delete            | /api/v1/saldo/:id                | DELETE |\n| Update            | /api/v1/saldo/:id                | PUT    |\n| **Refresh Token** |                                  |        |\n| Refresh           | /api/v1/refresh-token            | POST   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestuwahyu13%2Fexpress-payment-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frestuwahyu13%2Fexpress-payment-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestuwahyu13%2Fexpress-payment-gateway/lists"}