{"id":19593234,"url":"https://github.com/mohammadshaad/tanx.fi-assignment","last_synced_at":"2026-04-11T18:06:15.141Z","repository":{"id":250604522,"uuid":"834568089","full_name":"mohammadshaad/TanX.fi-Assignment","owner":"mohammadshaad","description":"A price alert application that triggers an email when the user’s target price is Achieved. Say, the current price of BTC is $28,000, a user sets an alert for BTC at a price of 33,000$. The application should send an email to the user when the price of BTC reaches 33,000$.","archived":false,"fork":false,"pushed_at":"2024-07-28T18:24:58.000Z","size":4617,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T14:16:47.675Z","etag":null,"topics":["docker","dockerfile","golang","jwt","postgresql","rabittmq","redis","sql"],"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/mohammadshaad.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-07-27T17:01:10.000Z","updated_at":"2024-09-26T11:08:07.000Z","dependencies_parsed_at":"2024-07-28T19:45:09.301Z","dependency_job_id":"5eeead7e-b6ca-4001-916b-1cf96307a728","html_url":"https://github.com/mohammadshaad/TanX.fi-Assignment","commit_stats":null,"previous_names":["mohammadshaad/golang-btc-price-alert","mohammadshaad/tanx.fi-assignment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohammadshaad/TanX.fi-Assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadshaad%2FTanX.fi-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadshaad%2FTanX.fi-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadshaad%2FTanX.fi-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadshaad%2FTanX.fi-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammadshaad","download_url":"https://codeload.github.com/mohammadshaad/TanX.fi-Assignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadshaad%2FTanX.fi-Assignment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265607242,"owners_count":23797106,"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","dockerfile","golang","jwt","postgresql","rabittmq","redis","sql"],"created_at":"2024-11-11T08:38:44.290Z","updated_at":"2026-04-11T18:06:15.097Z","avatar_url":"https://github.com/mohammadshaad.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Price Alert Application\n\n## Overview\nThis application allows users to set price alerts for Bitcoin (BTC). When the target price is reached, an email notification is sent to the user.\n\n## Features\n- Create, delete, and fetch price alerts.\n- Real-time price updates using Binance WebSocket.\n- User authentication with JWT tokens.\n- Email notifications using Gmail SMTP.\n- Caching with Redis.\n- Dockerized setup.\n\n## Endpoints\n\n### Login\n`POST /login`\n```json\n{\n    \"username\": \"username\",\n    \"password\": \"password\"\n}\n```\n\n### Create Alert\n`POST /alerts/create`\n```json\n{\n    \"user_id\": \"1\",\n    \"coin\": \"BTC\",\n    \"target_price\": 33000.00\n}\n```\n\n### Delete Alert\n`DELETE /alerts/delete`\n```json\n{\n    \"user_id\": \"1\",\n    \"coin\": \"BTC\"\n}\n```\n\n### Fetch Alerts\n`GET /alerts/fetch?user_id=1`\n```json\n{\n    \"user_id\": \"1\"\n}\n```\n\n## Setup\n1. Clone the repository.\n2. Create a `.env` file in the root directory and add the following environment variables:\n```bash\nPOSTGRES_USER: user\nPOSTGRES_PASSWORD: password\nPOSTGRES_DB: price_alert\n```\n\n3. Run the following command to start the application:\n```bash\ndocker-compose up\n```\n\n4. The application will be running on `http://localhost:8000`.\n\n## Technologies\n- Golang\n- PostgreSQL\n- Redis\n- Docker\n- Binance WebSocket\n- JWT\n\n## Thank You\nMade with ❤️ by [Mohammad Shaad](https://github.com/mohammadshaad).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadshaad%2Ftanx.fi-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammadshaad%2Ftanx.fi-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadshaad%2Ftanx.fi-assignment/lists"}