{"id":30383106,"url":"https://github.com/ashvinck/octa-node-backend","last_synced_at":"2026-04-11T07:02:00.817Z","repository":{"id":310887244,"uuid":"1041622186","full_name":"ashvinck/octa-node-backend","owner":"ashvinck","description":"This is the backend repo of a personal finance dashboard with live updates to stock parameters like cmp,p/e ratio etc.","archived":false,"fork":false,"pushed_at":"2025-08-20T19:38:25.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-20T21:34:06.947Z","etag":null,"topics":["cors","express","helmet","mongodb","nodejs","ratelimiting","typescript2","winston-logger"],"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/ashvinck.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-08-20T19:02:27.000Z","updated_at":"2025-08-20T19:38:28.000Z","dependencies_parsed_at":"2025-08-20T21:34:09.997Z","dependency_job_id":"d8226759-26f2-4630-90c1-f20a282de7a4","html_url":"https://github.com/ashvinck/octa-node-backend","commit_stats":null,"previous_names":["ashvinck/octa-node-backend"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ashvinck/octa-node-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashvinck%2Focta-node-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashvinck%2Focta-node-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashvinck%2Focta-node-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashvinck%2Focta-node-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashvinck","download_url":"https://codeload.github.com/ashvinck/octa-node-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashvinck%2Focta-node-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271405485,"owners_count":24753796,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cors","express","helmet","mongodb","nodejs","ratelimiting","typescript2","winston-logger"],"created_at":"2025-08-20T23:56:10.761Z","updated_at":"2026-04-11T07:01:55.789Z","avatar_url":"https://github.com/ashvinck.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📊 Octa Byte Backend\n\nA secure and scalable **Express.js + TypeScript** backend for managing a **dynamic portfolio dashboard**.  \nThis service powers real-time portfolio insights (CMP, P/E ratio, earnings, gain/loss calculations, etc.) by integrating with financial APIs and serving them to the frontend (Next.js).\n\n---\n\n## 🚀 Features\n\n- **TypeScript-first** development\n- **Express.js v5** application setup\n- **Security**: Helmet, CORS, Rate Limiting\n- **Logging**: Winston + Morgan integrated\n- **Error Handling**: Centralized error middleware\n- **Modular Architecture** with route separation\n- **Data Persistence**: MongoDB (via Mongoose)\n\n---\n\n## ⚙️ Tech Stack\n\n- **Backend Framework**: Express.js\n- **Language**: TypeScript\n- **Database**: MongoDB (Mongoose ODM)\n- **Security**: Helmet, Rate limiting, CORS\n- **Logging**: Winston + Morgan\n\n---\n\n## 🔧 Setup \u0026 Installation\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/ashvinck/octa-node-backend.git\ncd octa-node-backend\n```\n\n### 2. Install Dependencies\n\n```bash\nnpm install\n```\n\n### 3. Environment Variables\n\nCreate an `.env.development` and `.env.production` file in the project root.\n\nExample:\n\n```\nPORT=5000\nMONGO_URI=mongodb://localhost:27017/octa\nNODE_ENV=development\n```\n\n### 4. Run in Development\n\n```bash\nnpm run dev\n```\n\n### 5. Build for Production\n\n```bash\nnpm run build\nnpm run dev:prod\n```\n\n---\n\n````\n\n---\n\n## 🛠️ Available Scripts\n\n| Command | Description |\n|---------|-------------|\n| `npm run dev` | Start development server with hot reload |\n\n---\n\n## 📌 Routes\n\n### Health Check\n```http\nGET /\n````\n\n**Response:**\n\n```\n🙋‍♂️ Hello! Welcome to My Fort Backend!\n```\n\n### Portfolio API\n\n```http\nGET /portfolio\n```\n\nFetch user portfolio and stock data (CMP, P/E, Earnings, Gain/Loss).\n\n---\n\n## 🔒 Security Features\n\n- **Helmet** for securing HTTP headers\n- **CORS** with dynamic options via `getCorsOptions()`\n- **Rate Limiting** (max 500 requests / 15 mins per IP)\n- **Error Handling**: Centralized with proper HTTP codes\n\n---\n\n## 📜 License\n\nMIT © 2025\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashvinck%2Focta-node-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashvinck%2Focta-node-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashvinck%2Focta-node-backend/lists"}