{"id":28844345,"url":"https://github.com/glory42/currency_nostalgia_api","last_synced_at":"2026-01-31T20:01:42.497Z","repository":{"id":285767702,"uuid":"958827521","full_name":"Glory42/Currency_Nostalgia_API","owner":"Glory42","description":"💱 A Node.js REST API for comparing real-time and historical USD exchange rates. Combines live data from CurrencyFreaks with structured JSON datasets 🗂️ to analyze product price changes over time 📊. Ideal for currency-based cost analysis, nostalgia pricing tools, and educational use cases 🧠.","archived":false,"fork":false,"pushed_at":"2025-05-05T18:53:27.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T17:51:47.410Z","etag":null,"topics":["axios","cron-jobs","currency-exchange-rates","express","historical-data","json","nodejs","price-comparison","rest-api","supabase","time-travel"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Glory42.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":"2025-04-01T20:36:24.000Z","updated_at":"2025-05-05T20:14:03.000Z","dependencies_parsed_at":"2025-05-05T18:56:06.083Z","dependency_job_id":"57b0a945-ce7c-484c-94e9-769f7d455d59","html_url":"https://github.com/Glory42/Currency_Nostalgia_API","commit_stats":null,"previous_names":["glory42/webappkindathingidk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Glory42/Currency_Nostalgia_API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glory42%2FCurrency_Nostalgia_API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glory42%2FCurrency_Nostalgia_API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glory42%2FCurrency_Nostalgia_API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glory42%2FCurrency_Nostalgia_API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Glory42","download_url":"https://codeload.github.com/Glory42/Currency_Nostalgia_API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glory42%2FCurrency_Nostalgia_API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28952578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"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":["axios","cron-jobs","currency-exchange-rates","express","historical-data","json","nodejs","price-comparison","rest-api","supabase","time-travel"],"created_at":"2025-06-19T17:36:44.825Z","updated_at":"2026-01-31T20:01:42.493Z","avatar_url":"https://github.com/Glory42.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💱 Currency Nostalgia API\n\nCurrency Nostalgia is a currency comparison API that allows users to compare historical USD exchange rates with today's product prices. It uses [CurrencyFreaks](https://currencyfreaks.com/) free API for current exchange rates and manually added JSON data for historical values and product prices.\n\n## 🚀 Features\n\n- Fetches live exchange rates using CurrencyFreaks API.\n- Compares historical product prices with today's equivalents.\n- Stores historical exchange rates and product data in local JSON files.\n- Schedules daily currency rate updates using `node-cron`.\n\n## 🔗 Live Demo (Hosted on Render)\n\nYou can test the API live on Render:\n\n- **Get the latest exchange rates:**  \n  \u003ca href=\"https://webappkindathingidk.onrender.com/currency/latest\" target=\"_blank\"\u003ehttps://webappkindathingidk.onrender.com/currency/latest\u003c/a\u003e\n\n- **Compare historical vs current product price:**  \n  [`https://webappkindathingidk.onrender.com/nostalgia/compare?year=2015\u0026productId=1`](https://webappkindathingidk.onrender.com/nostalgia/compare?year=2015\u0026productId=1)  \n  ↳ You can modify `year` and `productId` to test other combinations.\n\n## 🛠️ Project Structure\n````\nproject-root/\n├── node_modules/                  # Node.js modules\n├── public/                        # Static files (CSS, JavaScript, images)\n│   ├── css/\n│   ├── js/\n│   └── img/\n├── views/                         # Frontend files (HTML, template engine files)\n│   └── layouts/\n├── routes/                        # Route definitions\n│   ├── currency.js                \n│   └── nostalgia.js               \n├── controllers/                   # Route handlers\n│   ├── currencyController.js      \n│   └── nostalgiaController.js     \n├── config/                        # API and DB configuration\n│   ├── api.js\n│   └── supabase.js\n├── services/\n│   └── exchangeRateSerices.js\n├── data/                          # Data Files\n│   ├── products.json              \n│   └── historicalExchange.json    \n├── utils/                         # Utility functions\n│   └── apiUtils.js                \n├── .env                           # Environment variables\n├── .gitignore                     # Files to be ignored by Git\n├── package.json                   # Node.js project configuration\n├── server.js                      # Main server file\n└── README.md                      # Project description\n````\n\n## ⚙️ Setup Instructions\n\nProjenin çalışabilmesi için aşağıdaki adımları takip edin:\n\n### 1. Clone the repository:\n```bash\ngit clone https://github.com/Glory42/webAppKindaThingidk.git\ncd webAppKindaThingidk\n```\n\n### 2. Install dependencies:\n````bash\nnpm install\n`````\n\n### 3. Create a .env file:\nIn the project root, create a .env file with the following content:\n````\nCURRENCY_API_KEY=your_currencyfreaks_api_key\nSUPABASE_URL=https://your-project.supabase.co\nSUPABASE_KEY=your_supabase_anon_key`\n````\n### 4. Start the server:\n````bash\nnpm start\n````\nThe API will be accessible at: \n```` bash\n http://localhost:3000\n```` \n\n## 📦 Dependencies\n| Package                 | Purpose                       |\n| ----------------------- | ----------------------------- |\n| `express`               | Web framework                 |\n| `axios`                 | HTTP client                   |\n| `cors`                  | Cross-Origin Resource Sharing |\n| `node-cron`             | Scheduled background tasks    |\n| `@supabase/supabase-js` | Supabase client for DB access |\n\n## 📁 Data Files\n* data/products.json: Historical product prices per year.\n\n* data/historicalExchange.json: Manually stored historical exchange rates.\n\n## 📬 Contributing\nPull requests and contributions are welcome. Please open an issue first to discuss your ideas before making major changes.\n\nMIT [LICENSE](LICENSE) © 2025 Görkem Karyol","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglory42%2Fcurrency_nostalgia_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglory42%2Fcurrency_nostalgia_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglory42%2Fcurrency_nostalgia_api/lists"}