├── README.md ├── backend ├── .env ├── index.js ├── model │ ├── HoldingsModel.js │ ├── OrdersModel.js │ └── PositionsModel.js ├── package-lock.json ├── package.json └── schemas │ ├── HoldingsSchema.js │ ├── OrdersSchema.js │ └── PositionsSchema.js ├── dashboard ├── package-lock.json ├── package.json ├── public │ ├── index.html │ ├── logo.png │ └── robots.txt └── src │ ├── components │ ├── Apps.js │ ├── BuyActionWindow.css │ ├── BuyActionWindow.js │ ├── Dashboard.js │ ├── DoughnoutChart.js │ ├── Funds.js │ ├── GeneralContext.js │ ├── Holdings.js │ ├── Home.js │ ├── Menu.js │ ├── Orders.js │ ├── Positions.js │ ├── Summary.js │ ├── TopBar.js │ ├── VerticalGraph.js │ └── WatchList.js │ ├── data │ └── data.js │ ├── index.css │ └── index.js └── frontend ├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── index.html ├── manifest.json └── robots.txt └── src ├── index.css ├── index.js └── landing_page ├── Footer.js ├── Navbar.js ├── NotFound.js ├── OpenAccount.js ├── about ├── AboutPage.js ├── Hero.js └── Team.js ├── home ├── Awards.js ├── Education.js ├── Hero.js ├── HomePage.js ├── Pricing.js └── Stats.js ├── pricing ├── Brokerage.js ├── Hero.js └── PricingPage.js ├── products ├── Hero.js ├── LeftSection.js ├── ProductsPage.js ├── RightSection.js └── Universe.js ├── signup └── Signup.js └── support ├── CreateTicket.js ├── Hero.js └── SupportPage.js /README.md: -------------------------------------------------------------------------------- 1 | # Zerodha 2 | Please try to implement the project on your own before proceeding to the lectures & code. 3 | -------------------------------------------------------------------------------- /backend/.env: -------------------------------------------------------------------------------- 1 | MONGO_URL=<> 2 | -------------------------------------------------------------------------------- /backend/index.js: -------------------------------------------------------------------------------- 1 | require("dotenv").config(); 2 | 3 | const express = require("express"); 4 | const mongoose = require("mongoose"); 5 | const bodyParser = require("body-parser"); 6 | const cors = require("cors"); 7 | 8 | const { HoldingsModel } = require("./model/HoldingsModel"); 9 | 10 | const { PositionsModel } = require("./model/PositionsModel"); 11 | const { OrdersModel } = require("./model/OrdersModel"); 12 | 13 | const PORT = process.env.PORT || 3002; 14 | const uri = process.env.MONGO_URL; 15 | 16 | const app = express(); 17 | 18 | app.use(cors()); 19 | app.use(bodyParser.json()); 20 | 21 | // app.get("/addHoldings", async (req, res) => { 22 | // let tempHoldings = [ 23 | // { 24 | // name: "BHARTIARTL", 25 | // qty: 2, 26 | // avg: 538.05, 27 | // price: 541.15, 28 | // net: "+0.58%", 29 | // day: "+2.99%", 30 | // }, 31 | // { 32 | // name: "HDFCBANK", 33 | // qty: 2, 34 | // avg: 1383.4, 35 | // price: 1522.35, 36 | // net: "+10.04%", 37 | // day: "+0.11%", 38 | // }, 39 | // { 40 | // name: "HINDUNILVR", 41 | // qty: 1, 42 | // avg: 2335.85, 43 | // price: 2417.4, 44 | // net: "+3.49%", 45 | // day: "+0.21%", 46 | // }, 47 | // { 48 | // name: "INFY", 49 | // qty: 1, 50 | // avg: 1350.5, 51 | // price: 1555.45, 52 | // net: "+15.18%", 53 | // day: "-1.60%", 54 | // isLoss: true, 55 | // }, 56 | // { 57 | // name: "ITC", 58 | // qty: 5, 59 | // avg: 202.0, 60 | // price: 207.9, 61 | // net: "+2.92%", 62 | // day: "+0.80%", 63 | // }, 64 | // { 65 | // name: "KPITTECH", 66 | // qty: 5, 67 | // avg: 250.3, 68 | // price: 266.45, 69 | // net: "+6.45%", 70 | // day: "+3.54%", 71 | // }, 72 | // { 73 | // name: "M&M", 74 | // qty: 2, 75 | // avg: 809.9, 76 | // price: 779.8, 77 | // net: "-3.72%", 78 | // day: "-0.01%", 79 | // isLoss: true, 80 | // }, 81 | // { 82 | // name: "RELIANCE", 83 | // qty: 1, 84 | // avg: 2193.7, 85 | // price: 2112.4, 86 | // net: "-3.71%", 87 | // day: "+1.44%", 88 | // }, 89 | // { 90 | // name: "SBIN", 91 | // qty: 4, 92 | // avg: 324.35, 93 | // price: 430.2, 94 | // net: "+32.63%", 95 | // day: "-0.34%", 96 | // isLoss: true, 97 | // }, 98 | // { 99 | // name: "SGBMAY29", 100 | // qty: 2, 101 | // avg: 4727.0, 102 | // price: 4719.0, 103 | // net: "-0.17%", 104 | // day: "+0.15%", 105 | // }, 106 | // { 107 | // name: "TATAPOWER", 108 | // qty: 5, 109 | // avg: 104.2, 110 | // price: 124.15, 111 | // net: "+19.15%", 112 | // day: "-0.24%", 113 | // isLoss: true, 114 | // }, 115 | // { 116 | // name: "TCS", 117 | // qty: 1, 118 | // avg: 3041.7, 119 | // price: 3194.8, 120 | // net: "+5.03%", 121 | // day: "-0.25%", 122 | // isLoss: true, 123 | // }, 124 | // { 125 | // name: "WIPRO", 126 | // qty: 4, 127 | // avg: 489.3, 128 | // price: 577.75, 129 | // net: "+18.08%", 130 | // day: "+0.32%", 131 | // }, 132 | // ]; 133 | 134 | // tempHoldings.forEach((item) => { 135 | // let newHolding = new HoldingsModel({ 136 | // name: item.name, 137 | // qty: item.qty, 138 | // avg: item.avg, 139 | // price: item.price, 140 | // net: item.day, 141 | // day: item.day, 142 | // }); 143 | 144 | // newHolding.save(); 145 | // }); 146 | // res.send("Done!"); 147 | // }); 148 | 149 | // app.get("/addPositions", async (req, res) => { 150 | // let tempPositions = [ 151 | // { 152 | // product: "CNC", 153 | // name: "EVEREADY", 154 | // qty: 2, 155 | // avg: 316.27, 156 | // price: 312.35, 157 | // net: "+0.58%", 158 | // day: "-1.24%", 159 | // isLoss: true, 160 | // }, 161 | // { 162 | // product: "CNC", 163 | // name: "JUBLFOOD", 164 | // qty: 1, 165 | // avg: 3124.75, 166 | // price: 3082.65, 167 | // net: "+10.04%", 168 | // day: "-1.35%", 169 | // isLoss: true, 170 | // }, 171 | // ]; 172 | 173 | // tempPositions.forEach((item) => { 174 | // let newPosition = new PositionsModel({ 175 | // product: item.product, 176 | // name: item.name, 177 | // qty: item.qty, 178 | // avg: item.avg, 179 | // price: item.price, 180 | // net: item.net, 181 | // day: item.day, 182 | // isLoss: item.isLoss, 183 | // }); 184 | 185 | // newPosition.save(); 186 | // }); 187 | // res.send("Done!"); 188 | // }); 189 | 190 | app.get("/allHoldings", async (req, res) => { 191 | let allHoldings = await HoldingsModel.find({}); 192 | res.json(allHoldings); 193 | }); 194 | 195 | app.get("/allPositions", async (req, res) => { 196 | let allPositions = await PositionsModel.find({}); 197 | res.json(allPositions); 198 | }); 199 | 200 | app.post("/newOrder", async (req, res) => { 201 | let newOrder = new OrdersModel({ 202 | name: req.body.name, 203 | qty: req.body.qty, 204 | price: req.body.price, 205 | mode: req.body.mode, 206 | }); 207 | 208 | newOrder.save(); 209 | 210 | res.send("Order saved!"); 211 | }); 212 | 213 | app.listen(PORT, () => { 214 | console.log("App started!"); 215 | mongoose.connect(uri); 216 | console.log("DB started!"); 217 | }); 218 | -------------------------------------------------------------------------------- /backend/model/HoldingsModel.js: -------------------------------------------------------------------------------- 1 | const { model } = require("mongoose"); 2 | 3 | const { HoldingsSchema } = require("../schemas/HoldingsSchema"); 4 | 5 | const HoldingsModel = new model("holding", HoldingsSchema); 6 | 7 | module.exports = { HoldingsModel }; 8 | -------------------------------------------------------------------------------- /backend/model/OrdersModel.js: -------------------------------------------------------------------------------- 1 | const { model } = require("mongoose"); 2 | 3 | const { OrdersSchema } = require("../schemas/OrdersSchema"); 4 | 5 | const OrdersModel = new model("order", OrdersSchema); 6 | 7 | module.exports = { OrdersModel }; 8 | -------------------------------------------------------------------------------- /backend/model/PositionsModel.js: -------------------------------------------------------------------------------- 1 | const { model } = require("mongoose"); 2 | 3 | const { PositionsSchema } = require("../schemas/PositionsSchema"); 4 | 5 | const PositionsModel = new model("position", PositionsSchema); 6 | 7 | module.exports = { PositionsModel }; 8 | -------------------------------------------------------------------------------- /backend/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backend", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "backend", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "body-parser": "^1.20.2", 13 | "cors": "^2.8.5", 14 | "dotenv": "^16.4.5", 15 | "express": "^4.18.3", 16 | "mongoose": "^8.2.1", 17 | "passport": "^0.7.0", 18 | "passport-local": "^1.0.0", 19 | "passport-local-mongoose": "^8.0.0" 20 | }, 21 | "devDependencies": { 22 | "nodemon": "^3.1.0" 23 | } 24 | }, 25 | "node_modules/@mongodb-js/saslprep": { 26 | "version": "1.1.4", 27 | "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.4.tgz", 28 | "integrity": "sha512-8zJ8N1x51xo9hwPh6AWnKdLGEC5N3lDa6kms1YHmFBoRhTpJR6HG8wWk0td1MVCu9cD4YBrvjZEtd5Obw0Fbnw==", 29 | "dependencies": { 30 | "sparse-bitfield": "^3.0.3" 31 | } 32 | }, 33 | "node_modules/@types/webidl-conversions": { 34 | "version": "7.0.3", 35 | "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", 36 | "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==" 37 | }, 38 | "node_modules/@types/whatwg-url": { 39 | "version": "11.0.4", 40 | "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.4.tgz", 41 | "integrity": "sha512-lXCmTWSHJvf0TRSO58nm978b8HJ/EdsSsEKLd3ODHFjo+3VGAyyTp4v50nWvwtzBxSMQrVOK7tcuN0zGPLICMw==", 42 | "dependencies": { 43 | "@types/webidl-conversions": "*" 44 | } 45 | }, 46 | "node_modules/abbrev": { 47 | "version": "1.1.1", 48 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 49 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 50 | "dev": true 51 | }, 52 | "node_modules/accepts": { 53 | "version": "1.3.8", 54 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 55 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 56 | "dependencies": { 57 | "mime-types": "~2.1.34", 58 | "negotiator": "0.6.3" 59 | }, 60 | "engines": { 61 | "node": ">= 0.6" 62 | } 63 | }, 64 | "node_modules/anymatch": { 65 | "version": "3.1.3", 66 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 67 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 68 | "dev": true, 69 | "dependencies": { 70 | "normalize-path": "^3.0.0", 71 | "picomatch": "^2.0.4" 72 | }, 73 | "engines": { 74 | "node": ">= 8" 75 | } 76 | }, 77 | "node_modules/array-flatten": { 78 | "version": "1.1.1", 79 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 80 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" 81 | }, 82 | "node_modules/balanced-match": { 83 | "version": "1.0.2", 84 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 85 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 86 | "dev": true 87 | }, 88 | "node_modules/binary-extensions": { 89 | "version": "2.2.0", 90 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 91 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 92 | "dev": true, 93 | "engines": { 94 | "node": ">=8" 95 | } 96 | }, 97 | "node_modules/body-parser": { 98 | "version": "1.20.2", 99 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", 100 | "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", 101 | "dependencies": { 102 | "bytes": "3.1.2", 103 | "content-type": "~1.0.5", 104 | "debug": "2.6.9", 105 | "depd": "2.0.0", 106 | "destroy": "1.2.0", 107 | "http-errors": "2.0.0", 108 | "iconv-lite": "0.4.24", 109 | "on-finished": "2.4.1", 110 | "qs": "6.11.0", 111 | "raw-body": "2.5.2", 112 | "type-is": "~1.6.18", 113 | "unpipe": "1.0.0" 114 | }, 115 | "engines": { 116 | "node": ">= 0.8", 117 | "npm": "1.2.8000 || >= 1.4.16" 118 | } 119 | }, 120 | "node_modules/body-parser/node_modules/debug": { 121 | "version": "2.6.9", 122 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 123 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 124 | "dependencies": { 125 | "ms": "2.0.0" 126 | } 127 | }, 128 | "node_modules/body-parser/node_modules/ms": { 129 | "version": "2.0.0", 130 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 131 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 132 | }, 133 | "node_modules/brace-expansion": { 134 | "version": "1.1.11", 135 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 136 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 137 | "dev": true, 138 | "dependencies": { 139 | "balanced-match": "^1.0.0", 140 | "concat-map": "0.0.1" 141 | } 142 | }, 143 | "node_modules/braces": { 144 | "version": "3.0.2", 145 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 146 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 147 | "dev": true, 148 | "dependencies": { 149 | "fill-range": "^7.0.1" 150 | }, 151 | "engines": { 152 | "node": ">=8" 153 | } 154 | }, 155 | "node_modules/bson": { 156 | "version": "6.4.0", 157 | "resolved": "https://registry.npmjs.org/bson/-/bson-6.4.0.tgz", 158 | "integrity": "sha512-6/gSSEdbkuFlSb+ufj5jUSU4+wo8xQOwm2bDSqwmxiPE17JTpsP63eAwoN8iF8Oy4gJYj+PAL3zdRCTdaw5Y1g==", 159 | "engines": { 160 | "node": ">=16.20.1" 161 | } 162 | }, 163 | "node_modules/bytes": { 164 | "version": "3.1.2", 165 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 166 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 167 | "engines": { 168 | "node": ">= 0.8" 169 | } 170 | }, 171 | "node_modules/call-bind": { 172 | "version": "1.0.7", 173 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", 174 | "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", 175 | "dependencies": { 176 | "es-define-property": "^1.0.0", 177 | "es-errors": "^1.3.0", 178 | "function-bind": "^1.1.2", 179 | "get-intrinsic": "^1.2.4", 180 | "set-function-length": "^1.2.1" 181 | }, 182 | "engines": { 183 | "node": ">= 0.4" 184 | }, 185 | "funding": { 186 | "url": "https://github.com/sponsors/ljharb" 187 | } 188 | }, 189 | "node_modules/chokidar": { 190 | "version": "3.6.0", 191 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 192 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 193 | "dev": true, 194 | "dependencies": { 195 | "anymatch": "~3.1.2", 196 | "braces": "~3.0.2", 197 | "glob-parent": "~5.1.2", 198 | "is-binary-path": "~2.1.0", 199 | "is-glob": "~4.0.1", 200 | "normalize-path": "~3.0.0", 201 | "readdirp": "~3.6.0" 202 | }, 203 | "engines": { 204 | "node": ">= 8.10.0" 205 | }, 206 | "funding": { 207 | "url": "https://paulmillr.com/funding/" 208 | }, 209 | "optionalDependencies": { 210 | "fsevents": "~2.3.2" 211 | } 212 | }, 213 | "node_modules/concat-map": { 214 | "version": "0.0.1", 215 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 216 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 217 | "dev": true 218 | }, 219 | "node_modules/content-disposition": { 220 | "version": "0.5.4", 221 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 222 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 223 | "dependencies": { 224 | "safe-buffer": "5.2.1" 225 | }, 226 | "engines": { 227 | "node": ">= 0.6" 228 | } 229 | }, 230 | "node_modules/content-type": { 231 | "version": "1.0.5", 232 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 233 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 234 | "engines": { 235 | "node": ">= 0.6" 236 | } 237 | }, 238 | "node_modules/cookie": { 239 | "version": "0.5.0", 240 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", 241 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", 242 | "engines": { 243 | "node": ">= 0.6" 244 | } 245 | }, 246 | "node_modules/cookie-signature": { 247 | "version": "1.0.6", 248 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 249 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" 250 | }, 251 | "node_modules/cors": { 252 | "version": "2.8.5", 253 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 254 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 255 | "dependencies": { 256 | "object-assign": "^4", 257 | "vary": "^1" 258 | }, 259 | "engines": { 260 | "node": ">= 0.10" 261 | } 262 | }, 263 | "node_modules/debug": { 264 | "version": "4.3.4", 265 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 266 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 267 | "dependencies": { 268 | "ms": "2.1.2" 269 | }, 270 | "engines": { 271 | "node": ">=6.0" 272 | }, 273 | "peerDependenciesMeta": { 274 | "supports-color": { 275 | "optional": true 276 | } 277 | } 278 | }, 279 | "node_modules/define-data-property": { 280 | "version": "1.1.4", 281 | "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", 282 | "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", 283 | "dependencies": { 284 | "es-define-property": "^1.0.0", 285 | "es-errors": "^1.3.0", 286 | "gopd": "^1.0.1" 287 | }, 288 | "engines": { 289 | "node": ">= 0.4" 290 | }, 291 | "funding": { 292 | "url": "https://github.com/sponsors/ljharb" 293 | } 294 | }, 295 | "node_modules/depd": { 296 | "version": "2.0.0", 297 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 298 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 299 | "engines": { 300 | "node": ">= 0.8" 301 | } 302 | }, 303 | "node_modules/destroy": { 304 | "version": "1.2.0", 305 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 306 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 307 | "engines": { 308 | "node": ">= 0.8", 309 | "npm": "1.2.8000 || >= 1.4.16" 310 | } 311 | }, 312 | "node_modules/dotenv": { 313 | "version": "16.4.5", 314 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", 315 | "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", 316 | "engines": { 317 | "node": ">=12" 318 | }, 319 | "funding": { 320 | "url": "https://dotenvx.com" 321 | } 322 | }, 323 | "node_modules/ee-first": { 324 | "version": "1.1.1", 325 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 326 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 327 | }, 328 | "node_modules/encodeurl": { 329 | "version": "1.0.2", 330 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 331 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 332 | "engines": { 333 | "node": ">= 0.8" 334 | } 335 | }, 336 | "node_modules/es-define-property": { 337 | "version": "1.0.0", 338 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", 339 | "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", 340 | "dependencies": { 341 | "get-intrinsic": "^1.2.4" 342 | }, 343 | "engines": { 344 | "node": ">= 0.4" 345 | } 346 | }, 347 | "node_modules/es-errors": { 348 | "version": "1.3.0", 349 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 350 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 351 | "engines": { 352 | "node": ">= 0.4" 353 | } 354 | }, 355 | "node_modules/escape-html": { 356 | "version": "1.0.3", 357 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 358 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 359 | }, 360 | "node_modules/etag": { 361 | "version": "1.8.1", 362 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 363 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 364 | "engines": { 365 | "node": ">= 0.6" 366 | } 367 | }, 368 | "node_modules/express": { 369 | "version": "4.18.3", 370 | "resolved": "https://registry.npmjs.org/express/-/express-4.18.3.tgz", 371 | "integrity": "sha512-6VyCijWQ+9O7WuVMTRBTl+cjNNIzD5cY5mQ1WM8r/LEkI2u8EYpOotESNwzNlyCn3g+dmjKYI6BmNneSr/FSRw==", 372 | "dependencies": { 373 | "accepts": "~1.3.8", 374 | "array-flatten": "1.1.1", 375 | "body-parser": "1.20.2", 376 | "content-disposition": "0.5.4", 377 | "content-type": "~1.0.4", 378 | "cookie": "0.5.0", 379 | "cookie-signature": "1.0.6", 380 | "debug": "2.6.9", 381 | "depd": "2.0.0", 382 | "encodeurl": "~1.0.2", 383 | "escape-html": "~1.0.3", 384 | "etag": "~1.8.1", 385 | "finalhandler": "1.2.0", 386 | "fresh": "0.5.2", 387 | "http-errors": "2.0.0", 388 | "merge-descriptors": "1.0.1", 389 | "methods": "~1.1.2", 390 | "on-finished": "2.4.1", 391 | "parseurl": "~1.3.3", 392 | "path-to-regexp": "0.1.7", 393 | "proxy-addr": "~2.0.7", 394 | "qs": "6.11.0", 395 | "range-parser": "~1.2.1", 396 | "safe-buffer": "5.2.1", 397 | "send": "0.18.0", 398 | "serve-static": "1.15.0", 399 | "setprototypeof": "1.2.0", 400 | "statuses": "2.0.1", 401 | "type-is": "~1.6.18", 402 | "utils-merge": "1.0.1", 403 | "vary": "~1.1.2" 404 | }, 405 | "engines": { 406 | "node": ">= 0.10.0" 407 | } 408 | }, 409 | "node_modules/express/node_modules/debug": { 410 | "version": "2.6.9", 411 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 412 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 413 | "dependencies": { 414 | "ms": "2.0.0" 415 | } 416 | }, 417 | "node_modules/express/node_modules/ms": { 418 | "version": "2.0.0", 419 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 420 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 421 | }, 422 | "node_modules/fill-range": { 423 | "version": "7.0.1", 424 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 425 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 426 | "dev": true, 427 | "dependencies": { 428 | "to-regex-range": "^5.0.1" 429 | }, 430 | "engines": { 431 | "node": ">=8" 432 | } 433 | }, 434 | "node_modules/finalhandler": { 435 | "version": "1.2.0", 436 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", 437 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", 438 | "dependencies": { 439 | "debug": "2.6.9", 440 | "encodeurl": "~1.0.2", 441 | "escape-html": "~1.0.3", 442 | "on-finished": "2.4.1", 443 | "parseurl": "~1.3.3", 444 | "statuses": "2.0.1", 445 | "unpipe": "~1.0.0" 446 | }, 447 | "engines": { 448 | "node": ">= 0.8" 449 | } 450 | }, 451 | "node_modules/finalhandler/node_modules/debug": { 452 | "version": "2.6.9", 453 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 454 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 455 | "dependencies": { 456 | "ms": "2.0.0" 457 | } 458 | }, 459 | "node_modules/finalhandler/node_modules/ms": { 460 | "version": "2.0.0", 461 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 462 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 463 | }, 464 | "node_modules/forwarded": { 465 | "version": "0.2.0", 466 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 467 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 468 | "engines": { 469 | "node": ">= 0.6" 470 | } 471 | }, 472 | "node_modules/fresh": { 473 | "version": "0.5.2", 474 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 475 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 476 | "engines": { 477 | "node": ">= 0.6" 478 | } 479 | }, 480 | "node_modules/fsevents": { 481 | "version": "2.3.3", 482 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 483 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 484 | "dev": true, 485 | "hasInstallScript": true, 486 | "optional": true, 487 | "os": [ 488 | "darwin" 489 | ], 490 | "engines": { 491 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 492 | } 493 | }, 494 | "node_modules/function-bind": { 495 | "version": "1.1.2", 496 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 497 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 498 | "funding": { 499 | "url": "https://github.com/sponsors/ljharb" 500 | } 501 | }, 502 | "node_modules/generaterr": { 503 | "version": "1.5.0", 504 | "resolved": "https://registry.npmjs.org/generaterr/-/generaterr-1.5.0.tgz", 505 | "integrity": "sha512-JgcGRv2yUKeboLvvNrq9Bm90P4iJBu7/vd5wSLYqMG5GJ6SxZT46LAAkMfNhQ+EK3jzC+cRBm7P8aUWYyphgcQ==" 506 | }, 507 | "node_modules/get-intrinsic": { 508 | "version": "1.2.4", 509 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", 510 | "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", 511 | "dependencies": { 512 | "es-errors": "^1.3.0", 513 | "function-bind": "^1.1.2", 514 | "has-proto": "^1.0.1", 515 | "has-symbols": "^1.0.3", 516 | "hasown": "^2.0.0" 517 | }, 518 | "engines": { 519 | "node": ">= 0.4" 520 | }, 521 | "funding": { 522 | "url": "https://github.com/sponsors/ljharb" 523 | } 524 | }, 525 | "node_modules/glob-parent": { 526 | "version": "5.1.2", 527 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 528 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 529 | "dev": true, 530 | "dependencies": { 531 | "is-glob": "^4.0.1" 532 | }, 533 | "engines": { 534 | "node": ">= 6" 535 | } 536 | }, 537 | "node_modules/gopd": { 538 | "version": "1.0.1", 539 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", 540 | "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", 541 | "dependencies": { 542 | "get-intrinsic": "^1.1.3" 543 | }, 544 | "funding": { 545 | "url": "https://github.com/sponsors/ljharb" 546 | } 547 | }, 548 | "node_modules/has-flag": { 549 | "version": "3.0.0", 550 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 551 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 552 | "dev": true, 553 | "engines": { 554 | "node": ">=4" 555 | } 556 | }, 557 | "node_modules/has-property-descriptors": { 558 | "version": "1.0.2", 559 | "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", 560 | "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", 561 | "dependencies": { 562 | "es-define-property": "^1.0.0" 563 | }, 564 | "funding": { 565 | "url": "https://github.com/sponsors/ljharb" 566 | } 567 | }, 568 | "node_modules/has-proto": { 569 | "version": "1.0.3", 570 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", 571 | "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", 572 | "engines": { 573 | "node": ">= 0.4" 574 | }, 575 | "funding": { 576 | "url": "https://github.com/sponsors/ljharb" 577 | } 578 | }, 579 | "node_modules/has-symbols": { 580 | "version": "1.0.3", 581 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 582 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 583 | "engines": { 584 | "node": ">= 0.4" 585 | }, 586 | "funding": { 587 | "url": "https://github.com/sponsors/ljharb" 588 | } 589 | }, 590 | "node_modules/hasown": { 591 | "version": "2.0.1", 592 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", 593 | "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", 594 | "dependencies": { 595 | "function-bind": "^1.1.2" 596 | }, 597 | "engines": { 598 | "node": ">= 0.4" 599 | } 600 | }, 601 | "node_modules/http-errors": { 602 | "version": "2.0.0", 603 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 604 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 605 | "dependencies": { 606 | "depd": "2.0.0", 607 | "inherits": "2.0.4", 608 | "setprototypeof": "1.2.0", 609 | "statuses": "2.0.1", 610 | "toidentifier": "1.0.1" 611 | }, 612 | "engines": { 613 | "node": ">= 0.8" 614 | } 615 | }, 616 | "node_modules/iconv-lite": { 617 | "version": "0.4.24", 618 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 619 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 620 | "dependencies": { 621 | "safer-buffer": ">= 2.1.2 < 3" 622 | }, 623 | "engines": { 624 | "node": ">=0.10.0" 625 | } 626 | }, 627 | "node_modules/ignore-by-default": { 628 | "version": "1.0.1", 629 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 630 | "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", 631 | "dev": true 632 | }, 633 | "node_modules/inherits": { 634 | "version": "2.0.4", 635 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 636 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 637 | }, 638 | "node_modules/ipaddr.js": { 639 | "version": "1.9.1", 640 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 641 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 642 | "engines": { 643 | "node": ">= 0.10" 644 | } 645 | }, 646 | "node_modules/is-binary-path": { 647 | "version": "2.1.0", 648 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 649 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 650 | "dev": true, 651 | "dependencies": { 652 | "binary-extensions": "^2.0.0" 653 | }, 654 | "engines": { 655 | "node": ">=8" 656 | } 657 | }, 658 | "node_modules/is-extglob": { 659 | "version": "2.1.1", 660 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 661 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 662 | "dev": true, 663 | "engines": { 664 | "node": ">=0.10.0" 665 | } 666 | }, 667 | "node_modules/is-glob": { 668 | "version": "4.0.3", 669 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 670 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 671 | "dev": true, 672 | "dependencies": { 673 | "is-extglob": "^2.1.1" 674 | }, 675 | "engines": { 676 | "node": ">=0.10.0" 677 | } 678 | }, 679 | "node_modules/is-number": { 680 | "version": "7.0.0", 681 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 682 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 683 | "dev": true, 684 | "engines": { 685 | "node": ">=0.12.0" 686 | } 687 | }, 688 | "node_modules/kareem": { 689 | "version": "2.5.1", 690 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz", 691 | "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==", 692 | "engines": { 693 | "node": ">=12.0.0" 694 | } 695 | }, 696 | "node_modules/lru-cache": { 697 | "version": "6.0.0", 698 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 699 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 700 | "dev": true, 701 | "dependencies": { 702 | "yallist": "^4.0.0" 703 | }, 704 | "engines": { 705 | "node": ">=10" 706 | } 707 | }, 708 | "node_modules/media-typer": { 709 | "version": "0.3.0", 710 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 711 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 712 | "engines": { 713 | "node": ">= 0.6" 714 | } 715 | }, 716 | "node_modules/memory-pager": { 717 | "version": "1.5.0", 718 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", 719 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==" 720 | }, 721 | "node_modules/merge-descriptors": { 722 | "version": "1.0.1", 723 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 724 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" 725 | }, 726 | "node_modules/methods": { 727 | "version": "1.1.2", 728 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 729 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 730 | "engines": { 731 | "node": ">= 0.6" 732 | } 733 | }, 734 | "node_modules/mime": { 735 | "version": "1.6.0", 736 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 737 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 738 | "bin": { 739 | "mime": "cli.js" 740 | }, 741 | "engines": { 742 | "node": ">=4" 743 | } 744 | }, 745 | "node_modules/mime-db": { 746 | "version": "1.52.0", 747 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 748 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 749 | "engines": { 750 | "node": ">= 0.6" 751 | } 752 | }, 753 | "node_modules/mime-types": { 754 | "version": "2.1.35", 755 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 756 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 757 | "dependencies": { 758 | "mime-db": "1.52.0" 759 | }, 760 | "engines": { 761 | "node": ">= 0.6" 762 | } 763 | }, 764 | "node_modules/minimatch": { 765 | "version": "3.1.2", 766 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 767 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 768 | "dev": true, 769 | "dependencies": { 770 | "brace-expansion": "^1.1.7" 771 | }, 772 | "engines": { 773 | "node": "*" 774 | } 775 | }, 776 | "node_modules/mongodb": { 777 | "version": "6.3.0", 778 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.3.0.tgz", 779 | "integrity": "sha512-tt0KuGjGtLUhLoU263+xvQmPHEGTw5LbcNC73EoFRYgSHwZt5tsoJC110hDyO1kjQzpgNrpdcSza9PknWN4LrA==", 780 | "dependencies": { 781 | "@mongodb-js/saslprep": "^1.1.0", 782 | "bson": "^6.2.0", 783 | "mongodb-connection-string-url": "^3.0.0" 784 | }, 785 | "engines": { 786 | "node": ">=16.20.1" 787 | }, 788 | "peerDependencies": { 789 | "@aws-sdk/credential-providers": "^3.188.0", 790 | "@mongodb-js/zstd": "^1.1.0", 791 | "gcp-metadata": "^5.2.0", 792 | "kerberos": "^2.0.1", 793 | "mongodb-client-encryption": ">=6.0.0 <7", 794 | "snappy": "^7.2.2", 795 | "socks": "^2.7.1" 796 | }, 797 | "peerDependenciesMeta": { 798 | "@aws-sdk/credential-providers": { 799 | "optional": true 800 | }, 801 | "@mongodb-js/zstd": { 802 | "optional": true 803 | }, 804 | "gcp-metadata": { 805 | "optional": true 806 | }, 807 | "kerberos": { 808 | "optional": true 809 | }, 810 | "mongodb-client-encryption": { 811 | "optional": true 812 | }, 813 | "snappy": { 814 | "optional": true 815 | }, 816 | "socks": { 817 | "optional": true 818 | } 819 | } 820 | }, 821 | "node_modules/mongodb-connection-string-url": { 822 | "version": "3.0.0", 823 | "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.0.tgz", 824 | "integrity": "sha512-t1Vf+m1I5hC2M5RJx/7AtxgABy1cZmIPQRMXw+gEIPn/cZNF3Oiy+l0UIypUwVB5trcWHq3crg2g3uAR9aAwsQ==", 825 | "dependencies": { 826 | "@types/whatwg-url": "^11.0.2", 827 | "whatwg-url": "^13.0.0" 828 | } 829 | }, 830 | "node_modules/mongoose": { 831 | "version": "8.2.1", 832 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.2.1.tgz", 833 | "integrity": "sha512-UgZZbXSJH0pdU936qj3FyVI+sBsMoGowFnL5R/RYrA50ayn6+ZYdVr8ehsRgNxRcMYwoNld5XzHIfkFRJTePEw==", 834 | "dependencies": { 835 | "bson": "^6.2.0", 836 | "kareem": "2.5.1", 837 | "mongodb": "6.3.0", 838 | "mpath": "0.9.0", 839 | "mquery": "5.0.0", 840 | "ms": "2.1.3", 841 | "sift": "16.0.1" 842 | }, 843 | "engines": { 844 | "node": ">=16.20.1" 845 | }, 846 | "funding": { 847 | "type": "opencollective", 848 | "url": "https://opencollective.com/mongoose" 849 | } 850 | }, 851 | "node_modules/mongoose/node_modules/ms": { 852 | "version": "2.1.3", 853 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 854 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 855 | }, 856 | "node_modules/mpath": { 857 | "version": "0.9.0", 858 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", 859 | "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", 860 | "engines": { 861 | "node": ">=4.0.0" 862 | } 863 | }, 864 | "node_modules/mquery": { 865 | "version": "5.0.0", 866 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-5.0.0.tgz", 867 | "integrity": "sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==", 868 | "dependencies": { 869 | "debug": "4.x" 870 | }, 871 | "engines": { 872 | "node": ">=14.0.0" 873 | } 874 | }, 875 | "node_modules/ms": { 876 | "version": "2.1.2", 877 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 878 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 879 | }, 880 | "node_modules/negotiator": { 881 | "version": "0.6.3", 882 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 883 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 884 | "engines": { 885 | "node": ">= 0.6" 886 | } 887 | }, 888 | "node_modules/nodemon": { 889 | "version": "3.1.0", 890 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.0.tgz", 891 | "integrity": "sha512-xqlktYlDMCepBJd43ZQhjWwMw2obW/JRvkrLxq5RCNcuDDX1DbcPT+qT1IlIIdf+DhnWs90JpTMe+Y5KxOchvA==", 892 | "dev": true, 893 | "dependencies": { 894 | "chokidar": "^3.5.2", 895 | "debug": "^4", 896 | "ignore-by-default": "^1.0.1", 897 | "minimatch": "^3.1.2", 898 | "pstree.remy": "^1.1.8", 899 | "semver": "^7.5.3", 900 | "simple-update-notifier": "^2.0.0", 901 | "supports-color": "^5.5.0", 902 | "touch": "^3.1.0", 903 | "undefsafe": "^2.0.5" 904 | }, 905 | "bin": { 906 | "nodemon": "bin/nodemon.js" 907 | }, 908 | "engines": { 909 | "node": ">=10" 910 | }, 911 | "funding": { 912 | "type": "opencollective", 913 | "url": "https://opencollective.com/nodemon" 914 | } 915 | }, 916 | "node_modules/nopt": { 917 | "version": "1.0.10", 918 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 919 | "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", 920 | "dev": true, 921 | "dependencies": { 922 | "abbrev": "1" 923 | }, 924 | "bin": { 925 | "nopt": "bin/nopt.js" 926 | }, 927 | "engines": { 928 | "node": "*" 929 | } 930 | }, 931 | "node_modules/normalize-path": { 932 | "version": "3.0.0", 933 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 934 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 935 | "dev": true, 936 | "engines": { 937 | "node": ">=0.10.0" 938 | } 939 | }, 940 | "node_modules/object-assign": { 941 | "version": "4.1.1", 942 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 943 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 944 | "engines": { 945 | "node": ">=0.10.0" 946 | } 947 | }, 948 | "node_modules/object-inspect": { 949 | "version": "1.13.1", 950 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", 951 | "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", 952 | "funding": { 953 | "url": "https://github.com/sponsors/ljharb" 954 | } 955 | }, 956 | "node_modules/on-finished": { 957 | "version": "2.4.1", 958 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 959 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 960 | "dependencies": { 961 | "ee-first": "1.1.1" 962 | }, 963 | "engines": { 964 | "node": ">= 0.8" 965 | } 966 | }, 967 | "node_modules/parseurl": { 968 | "version": "1.3.3", 969 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 970 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 971 | "engines": { 972 | "node": ">= 0.8" 973 | } 974 | }, 975 | "node_modules/passport": { 976 | "version": "0.7.0", 977 | "resolved": "https://registry.npmjs.org/passport/-/passport-0.7.0.tgz", 978 | "integrity": "sha512-cPLl+qZpSc+ireUvt+IzqbED1cHHkDoVYMo30jbJIdOOjQ1MQYZBPiNvmi8UM6lJuOpTPXJGZQk0DtC4y61MYQ==", 979 | "dependencies": { 980 | "passport-strategy": "1.x.x", 981 | "pause": "0.0.1", 982 | "utils-merge": "^1.0.1" 983 | }, 984 | "engines": { 985 | "node": ">= 0.4.0" 986 | }, 987 | "funding": { 988 | "type": "github", 989 | "url": "https://github.com/sponsors/jaredhanson" 990 | } 991 | }, 992 | "node_modules/passport-local": { 993 | "version": "1.0.0", 994 | "resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz", 995 | "integrity": "sha512-9wCE6qKznvf9mQYYbgJ3sVOHmCWoUNMVFoZzNoznmISbhnNNPhN9xfY3sLmScHMetEJeoY7CXwfhCe7argfQow==", 996 | "dependencies": { 997 | "passport-strategy": "1.x.x" 998 | }, 999 | "engines": { 1000 | "node": ">= 0.4.0" 1001 | } 1002 | }, 1003 | "node_modules/passport-local-mongoose": { 1004 | "version": "8.0.0", 1005 | "resolved": "https://registry.npmjs.org/passport-local-mongoose/-/passport-local-mongoose-8.0.0.tgz", 1006 | "integrity": "sha512-jgfN/B0j11WT5f96QlL5EBvxbIwmzd+tbwPzG1Vk8hzDOF68jrch5M+NFvrHjWjb3lfAU0DkxKmNRT9BjFZysQ==", 1007 | "dependencies": { 1008 | "generaterr": "^1.5.0", 1009 | "passport-local": "^1.0.0", 1010 | "scmp": "^2.1.0" 1011 | }, 1012 | "engines": { 1013 | "node": ">= 8.0.0" 1014 | } 1015 | }, 1016 | "node_modules/passport-strategy": { 1017 | "version": "1.0.0", 1018 | "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", 1019 | "integrity": "sha512-CB97UUvDKJde2V0KDWWB3lyf6PC3FaZP7YxZ2G8OAtn9p4HI9j9JLP9qjOGZFvyl8uwNT8qM+hGnz/n16NI7oA==", 1020 | "engines": { 1021 | "node": ">= 0.4.0" 1022 | } 1023 | }, 1024 | "node_modules/path-to-regexp": { 1025 | "version": "0.1.7", 1026 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1027 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" 1028 | }, 1029 | "node_modules/pause": { 1030 | "version": "0.0.1", 1031 | "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", 1032 | "integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg==" 1033 | }, 1034 | "node_modules/picomatch": { 1035 | "version": "2.3.1", 1036 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1037 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1038 | "dev": true, 1039 | "engines": { 1040 | "node": ">=8.6" 1041 | }, 1042 | "funding": { 1043 | "url": "https://github.com/sponsors/jonschlinkert" 1044 | } 1045 | }, 1046 | "node_modules/proxy-addr": { 1047 | "version": "2.0.7", 1048 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 1049 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 1050 | "dependencies": { 1051 | "forwarded": "0.2.0", 1052 | "ipaddr.js": "1.9.1" 1053 | }, 1054 | "engines": { 1055 | "node": ">= 0.10" 1056 | } 1057 | }, 1058 | "node_modules/pstree.remy": { 1059 | "version": "1.1.8", 1060 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1061 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 1062 | "dev": true 1063 | }, 1064 | "node_modules/punycode": { 1065 | "version": "2.3.1", 1066 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1067 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1068 | "engines": { 1069 | "node": ">=6" 1070 | } 1071 | }, 1072 | "node_modules/qs": { 1073 | "version": "6.11.0", 1074 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", 1075 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", 1076 | "dependencies": { 1077 | "side-channel": "^1.0.4" 1078 | }, 1079 | "engines": { 1080 | "node": ">=0.6" 1081 | }, 1082 | "funding": { 1083 | "url": "https://github.com/sponsors/ljharb" 1084 | } 1085 | }, 1086 | "node_modules/range-parser": { 1087 | "version": "1.2.1", 1088 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1089 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1090 | "engines": { 1091 | "node": ">= 0.6" 1092 | } 1093 | }, 1094 | "node_modules/raw-body": { 1095 | "version": "2.5.2", 1096 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", 1097 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", 1098 | "dependencies": { 1099 | "bytes": "3.1.2", 1100 | "http-errors": "2.0.0", 1101 | "iconv-lite": "0.4.24", 1102 | "unpipe": "1.0.0" 1103 | }, 1104 | "engines": { 1105 | "node": ">= 0.8" 1106 | } 1107 | }, 1108 | "node_modules/readdirp": { 1109 | "version": "3.6.0", 1110 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1111 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1112 | "dev": true, 1113 | "dependencies": { 1114 | "picomatch": "^2.2.1" 1115 | }, 1116 | "engines": { 1117 | "node": ">=8.10.0" 1118 | } 1119 | }, 1120 | "node_modules/safe-buffer": { 1121 | "version": "5.2.1", 1122 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1123 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1124 | "funding": [ 1125 | { 1126 | "type": "github", 1127 | "url": "https://github.com/sponsors/feross" 1128 | }, 1129 | { 1130 | "type": "patreon", 1131 | "url": "https://www.patreon.com/feross" 1132 | }, 1133 | { 1134 | "type": "consulting", 1135 | "url": "https://feross.org/support" 1136 | } 1137 | ] 1138 | }, 1139 | "node_modules/safer-buffer": { 1140 | "version": "2.1.2", 1141 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1142 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1143 | }, 1144 | "node_modules/scmp": { 1145 | "version": "2.1.0", 1146 | "resolved": "https://registry.npmjs.org/scmp/-/scmp-2.1.0.tgz", 1147 | "integrity": "sha512-o/mRQGk9Rcer/jEEw/yw4mwo3EU/NvYvp577/Btqrym9Qy5/MdWGBqipbALgd2lrdWTJ5/gqDusxfnQBxOxT2Q==" 1148 | }, 1149 | "node_modules/semver": { 1150 | "version": "7.6.0", 1151 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", 1152 | "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", 1153 | "dev": true, 1154 | "dependencies": { 1155 | "lru-cache": "^6.0.0" 1156 | }, 1157 | "bin": { 1158 | "semver": "bin/semver.js" 1159 | }, 1160 | "engines": { 1161 | "node": ">=10" 1162 | } 1163 | }, 1164 | "node_modules/send": { 1165 | "version": "0.18.0", 1166 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", 1167 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", 1168 | "dependencies": { 1169 | "debug": "2.6.9", 1170 | "depd": "2.0.0", 1171 | "destroy": "1.2.0", 1172 | "encodeurl": "~1.0.2", 1173 | "escape-html": "~1.0.3", 1174 | "etag": "~1.8.1", 1175 | "fresh": "0.5.2", 1176 | "http-errors": "2.0.0", 1177 | "mime": "1.6.0", 1178 | "ms": "2.1.3", 1179 | "on-finished": "2.4.1", 1180 | "range-parser": "~1.2.1", 1181 | "statuses": "2.0.1" 1182 | }, 1183 | "engines": { 1184 | "node": ">= 0.8.0" 1185 | } 1186 | }, 1187 | "node_modules/send/node_modules/debug": { 1188 | "version": "2.6.9", 1189 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1190 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1191 | "dependencies": { 1192 | "ms": "2.0.0" 1193 | } 1194 | }, 1195 | "node_modules/send/node_modules/debug/node_modules/ms": { 1196 | "version": "2.0.0", 1197 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1198 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 1199 | }, 1200 | "node_modules/send/node_modules/ms": { 1201 | "version": "2.1.3", 1202 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1203 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 1204 | }, 1205 | "node_modules/serve-static": { 1206 | "version": "1.15.0", 1207 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", 1208 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", 1209 | "dependencies": { 1210 | "encodeurl": "~1.0.2", 1211 | "escape-html": "~1.0.3", 1212 | "parseurl": "~1.3.3", 1213 | "send": "0.18.0" 1214 | }, 1215 | "engines": { 1216 | "node": ">= 0.8.0" 1217 | } 1218 | }, 1219 | "node_modules/set-function-length": { 1220 | "version": "1.2.1", 1221 | "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", 1222 | "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", 1223 | "dependencies": { 1224 | "define-data-property": "^1.1.2", 1225 | "es-errors": "^1.3.0", 1226 | "function-bind": "^1.1.2", 1227 | "get-intrinsic": "^1.2.3", 1228 | "gopd": "^1.0.1", 1229 | "has-property-descriptors": "^1.0.1" 1230 | }, 1231 | "engines": { 1232 | "node": ">= 0.4" 1233 | } 1234 | }, 1235 | "node_modules/setprototypeof": { 1236 | "version": "1.2.0", 1237 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 1238 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 1239 | }, 1240 | "node_modules/side-channel": { 1241 | "version": "1.0.6", 1242 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", 1243 | "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", 1244 | "dependencies": { 1245 | "call-bind": "^1.0.7", 1246 | "es-errors": "^1.3.0", 1247 | "get-intrinsic": "^1.2.4", 1248 | "object-inspect": "^1.13.1" 1249 | }, 1250 | "engines": { 1251 | "node": ">= 0.4" 1252 | }, 1253 | "funding": { 1254 | "url": "https://github.com/sponsors/ljharb" 1255 | } 1256 | }, 1257 | "node_modules/sift": { 1258 | "version": "16.0.1", 1259 | "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz", 1260 | "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==" 1261 | }, 1262 | "node_modules/simple-update-notifier": { 1263 | "version": "2.0.0", 1264 | "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", 1265 | "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", 1266 | "dev": true, 1267 | "dependencies": { 1268 | "semver": "^7.5.3" 1269 | }, 1270 | "engines": { 1271 | "node": ">=10" 1272 | } 1273 | }, 1274 | "node_modules/sparse-bitfield": { 1275 | "version": "3.0.3", 1276 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", 1277 | "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", 1278 | "dependencies": { 1279 | "memory-pager": "^1.0.2" 1280 | } 1281 | }, 1282 | "node_modules/statuses": { 1283 | "version": "2.0.1", 1284 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 1285 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 1286 | "engines": { 1287 | "node": ">= 0.8" 1288 | } 1289 | }, 1290 | "node_modules/supports-color": { 1291 | "version": "5.5.0", 1292 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1293 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1294 | "dev": true, 1295 | "dependencies": { 1296 | "has-flag": "^3.0.0" 1297 | }, 1298 | "engines": { 1299 | "node": ">=4" 1300 | } 1301 | }, 1302 | "node_modules/to-regex-range": { 1303 | "version": "5.0.1", 1304 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1305 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1306 | "dev": true, 1307 | "dependencies": { 1308 | "is-number": "^7.0.0" 1309 | }, 1310 | "engines": { 1311 | "node": ">=8.0" 1312 | } 1313 | }, 1314 | "node_modules/toidentifier": { 1315 | "version": "1.0.1", 1316 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 1317 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 1318 | "engines": { 1319 | "node": ">=0.6" 1320 | } 1321 | }, 1322 | "node_modules/touch": { 1323 | "version": "3.1.0", 1324 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 1325 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 1326 | "dev": true, 1327 | "dependencies": { 1328 | "nopt": "~1.0.10" 1329 | }, 1330 | "bin": { 1331 | "nodetouch": "bin/nodetouch.js" 1332 | } 1333 | }, 1334 | "node_modules/tr46": { 1335 | "version": "4.1.1", 1336 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", 1337 | "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", 1338 | "dependencies": { 1339 | "punycode": "^2.3.0" 1340 | }, 1341 | "engines": { 1342 | "node": ">=14" 1343 | } 1344 | }, 1345 | "node_modules/type-is": { 1346 | "version": "1.6.18", 1347 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1348 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1349 | "dependencies": { 1350 | "media-typer": "0.3.0", 1351 | "mime-types": "~2.1.24" 1352 | }, 1353 | "engines": { 1354 | "node": ">= 0.6" 1355 | } 1356 | }, 1357 | "node_modules/undefsafe": { 1358 | "version": "2.0.5", 1359 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", 1360 | "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", 1361 | "dev": true 1362 | }, 1363 | "node_modules/unpipe": { 1364 | "version": "1.0.0", 1365 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1366 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 1367 | "engines": { 1368 | "node": ">= 0.8" 1369 | } 1370 | }, 1371 | "node_modules/utils-merge": { 1372 | "version": "1.0.1", 1373 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1374 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 1375 | "engines": { 1376 | "node": ">= 0.4.0" 1377 | } 1378 | }, 1379 | "node_modules/vary": { 1380 | "version": "1.1.2", 1381 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1382 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 1383 | "engines": { 1384 | "node": ">= 0.8" 1385 | } 1386 | }, 1387 | "node_modules/webidl-conversions": { 1388 | "version": "7.0.0", 1389 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", 1390 | "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", 1391 | "engines": { 1392 | "node": ">=12" 1393 | } 1394 | }, 1395 | "node_modules/whatwg-url": { 1396 | "version": "13.0.0", 1397 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-13.0.0.tgz", 1398 | "integrity": "sha512-9WWbymnqj57+XEuqADHrCJ2eSXzn8WXIW/YSGaZtb2WKAInQ6CHfaUUcTyyver0p8BDg5StLQq8h1vtZuwmOig==", 1399 | "dependencies": { 1400 | "tr46": "^4.1.1", 1401 | "webidl-conversions": "^7.0.0" 1402 | }, 1403 | "engines": { 1404 | "node": ">=16" 1405 | } 1406 | }, 1407 | "node_modules/yallist": { 1408 | "version": "4.0.0", 1409 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1410 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 1411 | "dev": true 1412 | } 1413 | } 1414 | } 1415 | -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backend", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "nodemon index.js" 8 | }, 9 | "author": "", 10 | "license": "ISC", 11 | "devDependencies": { 12 | "nodemon": "^3.1.0" 13 | }, 14 | "dependencies": { 15 | "body-parser": "^1.20.2", 16 | "cors": "^2.8.5", 17 | "dotenv": "^16.4.5", 18 | "express": "^4.18.3", 19 | "mongoose": "^8.2.1", 20 | "passport": "^0.7.0", 21 | "passport-local": "^1.0.0", 22 | "passport-local-mongoose": "^8.0.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /backend/schemas/HoldingsSchema.js: -------------------------------------------------------------------------------- 1 | const { Schema } = require("mongoose"); 2 | 3 | const HoldingsSchema = new Schema({ 4 | name: String, 5 | qty: Number, 6 | avg: Number, 7 | price: Number, 8 | net: String, 9 | day: String, 10 | }); 11 | 12 | module.exports = { HoldingsSchema }; 13 | -------------------------------------------------------------------------------- /backend/schemas/OrdersSchema.js: -------------------------------------------------------------------------------- 1 | const { Schema } = require("mongoose"); 2 | 3 | const OrdersSchema = new Schema({ 4 | name: String, 5 | qty: Number, 6 | price: Number, 7 | mode: String, 8 | }); 9 | 10 | module.exports = { OrdersSchema }; 11 | -------------------------------------------------------------------------------- /backend/schemas/PositionsSchema.js: -------------------------------------------------------------------------------- 1 | const { Schema } = require("mongoose"); 2 | 3 | const PositionsSchema = new Schema({ 4 | product: String, 5 | name: String, 6 | qty: Number, 7 | avg: Number, 8 | price: Number, 9 | net: String, 10 | day: String, 11 | isLoss: Boolean, 12 | }); 13 | 14 | module.exports = { PositionsSchema }; 15 | -------------------------------------------------------------------------------- /dashboard/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dashboard", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@emotion/react": "^11.11.4", 7 | "@emotion/styled": "^11.11.0", 8 | "@mui/icons-material": "^5.15.11", 9 | "@mui/material": "^5.15.11", 10 | "@testing-library/jest-dom": "^5.17.0", 11 | "@testing-library/react": "^13.4.0", 12 | "@testing-library/user-event": "^13.5.0", 13 | "axios": "^1.6.7", 14 | "chart.js": "^4.4.2", 15 | "react": "^18.2.0", 16 | "react-chartjs-2": "^5.2.0", 17 | "react-dom": "^18.2.0", 18 | "react-router-dom": "^6.22.2", 19 | "react-scripts": "5.0.1", 20 | "web-vitals": "^2.1.4" 21 | }, 22 | "scripts": { 23 | "start": "react-scripts start", 24 | "build": "react-scripts build", 25 | "test": "react-scripts test", 26 | "eject": "react-scripts eject" 27 | }, 28 | "eslintConfig": { 29 | "extends": [ 30 | "react-app", 31 | "react-app/jest" 32 | ] 33 | }, 34 | "browserslist": { 35 | "production": [ 36 | ">0.2%", 37 | "not dead", 38 | "not op_mini all" 39 | ], 40 | "development": [ 41 | "last 1 chrome version", 42 | "last 1 firefox version", 43 | "last 1 safari version" 44 | ] 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /dashboard/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /dashboard/public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apna-college/Zerodha/162db2e2bc709e769acfa81bfcb4301ff1107b99/dashboard/public/logo.png -------------------------------------------------------------------------------- /dashboard/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /dashboard/src/components/Apps.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const Apps = () => { 4 | return

Apps

; 5 | }; 6 | 7 | export default Apps; 8 | -------------------------------------------------------------------------------- /dashboard/src/components/BuyActionWindow.css: -------------------------------------------------------------------------------- 1 | .container { 2 | --radius: 4px; 3 | width: 40%; 4 | height: 63%; 5 | background: rgb(245, 245, 245); 6 | position: absolute; 7 | bottom: 0; 8 | left: 35%; 9 | cursor: move; 10 | box-sizing: border-box; 11 | z-index: 100; 12 | border-radius: var(--radius); 13 | border: 1px solid rgb(238, 238, 238); 14 | } 15 | 16 | .dragging { 17 | opacity: 0; 18 | } 19 | 20 | .container .header { 21 | width: 100%; 22 | background: #4184f3; 23 | box-sizing: border-box; 24 | padding: 16px; 25 | border-top-left-radius: var(--radius); 26 | border-top-right-radius: var(--radius); 27 | } 28 | 29 | .header h3 { 30 | color: #fff; 31 | font-size: 1rem; 32 | font-weight: 500; 33 | margin-bottom: 6px; 34 | } 35 | 36 | .header h3 span { 37 | font-size: 0.6rem; 38 | } 39 | 40 | .market-options { 41 | font-weight: 300; 42 | color: #fff; 43 | font-size: 0.8rem; 44 | } 45 | 46 | .market-options label, 47 | .order-validity label input, 48 | .sub-order-type label, 49 | .sub-order-type label input, 50 | .stop-loss-type label, 51 | .stop-loss-type label input { 52 | margin-right: 6px; 53 | cursor: pointer; 54 | } 55 | 56 | .market-options input[type="radio"] { 57 | border: 1px solid #ddd; 58 | cursor: pointer; 59 | padding: 2px; 60 | margin-right: 6px; 61 | } 62 | 63 | .tab { 64 | width: 100%; 65 | box-sizing: border-box; 66 | background-color: #f9f9f9; 67 | border-bottom: 2px solid rgba(180, 180, 180, 0.6); 68 | } 69 | 70 | .tab button { 71 | border: none; 72 | padding: 14px 16px; 73 | background: transparent; 74 | color: #4184f3; 75 | font-weight: 400; 76 | font-size: 0.8rem; 77 | cursor: pointer; 78 | } 79 | 80 | .regular-order { 81 | padding: 16px 26px; 82 | background-color: #fff; 83 | padding-bottom: 30px; 84 | } 85 | 86 | .regular-order label { 87 | font-size: 0.8rem; 88 | cursor: pointer; 89 | } 90 | 91 | .order-validity { 92 | width: 70%; 93 | display: flex; 94 | align-items: center; 95 | justify-content: space-between; 96 | } 97 | 98 | .order-validity label span { 99 | color: rgb(190, 190, 190); 100 | } 101 | 102 | .inputs { 103 | display: flex; 104 | align-items: center; 105 | justify-content: space-between; 106 | margin-top: 16px; 107 | margin-bottom: 16px; 108 | } 109 | 110 | .inputs fieldset { 111 | max-width: 120px; 112 | box-sizing: border-box; 113 | border: 0.7px solid #ddd; 114 | margin-right: 8px; 115 | } 116 | 117 | .inputs fieldset legend { 118 | margin-left: 10px; 119 | font-size: 0.8rem; 120 | padding: 0 4px; 121 | } 122 | 123 | .inputs fieldset:last-of-type legend { 124 | color: #ddd; 125 | } 126 | 127 | .inputs fieldset input { 128 | border: none; 129 | margin-right: 8px; 130 | max-width: 130px; 131 | min-height: 35px; 132 | padding: 0 12px; 133 | box-sizing: border-box; 134 | font-size: 1.1rem; 135 | } 136 | 137 | .options { 138 | width: 100%; 139 | box-sizing: border-box; 140 | display: flex; 141 | align-items: center; 142 | justify-content: space-between; 143 | } 144 | 145 | .options span { 146 | color: #4184f3; 147 | font-size: 0.8rem; 148 | cursor: pointer; 149 | } 150 | 151 | .buttons { 152 | width: 100%; 153 | box-sizing: border-box; 154 | display: flex; 155 | align-items: center; 156 | justify-content: space-between; 157 | position: relative; 158 | top: 10%; 159 | padding: 0 20px; 160 | } 161 | 162 | .buttons span { 163 | font-size: 0.8rem; 164 | } 165 | 166 | .btn { 167 | text-decoration: none; 168 | padding: 10px 20px; 169 | border-radius: 2px; 170 | color: #fff; 171 | margin-right: 2px; 172 | margin-left: 2px; 173 | } 174 | 175 | .btn-grey { 176 | background: #d4d4d4; 177 | color: #666666; 178 | } 179 | 180 | .btn-blue { 181 | background: #4184f3; 182 | } 183 | 184 | /* sudo selectors */ 185 | .tab button::after { 186 | content: ""; 187 | width: 100%; 188 | height: 3px; 189 | display: none; 190 | margin-top: 10px; 191 | background-color: #4184f3; 192 | } 193 | 194 | .inputs fieldset:focus { 195 | outline: none; 196 | border: 0.7px solid rgb(49, 49, 49); 197 | border-radius: 2px; 198 | } 199 | 200 | .inputs fieldset input:focus { 201 | outline: none; 202 | } 203 | 204 | .inputs fieldset input:focus { 205 | outline: none; 206 | } 207 | 208 | .inputs fieldset input:disabled { 209 | cursor: not-allowed; 210 | background-color: transparent; 211 | } 212 | 213 | .btn-blue:hover { 214 | background: #74a7fa; 215 | } 216 | 217 | .btn-grey:hover { 218 | background: #9b9b9b; 219 | color: #fff; 220 | } 221 | -------------------------------------------------------------------------------- /dashboard/src/components/BuyActionWindow.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from "react"; 2 | import { Link } from "react-router-dom"; 3 | 4 | import axios from "axios"; 5 | 6 | import GeneralContext from "./GeneralContext"; 7 | 8 | import "./BuyActionWindow.css"; 9 | 10 | const BuyActionWindow = ({ uid }) => { 11 | const [stockQuantity, setStockQuantity] = useState(1); 12 | const [stockPrice, setStockPrice] = useState(0.0); 13 | 14 | const handleBuyClick = () => { 15 | axios.post("http://localhost:3002/newOrder", { 16 | name: uid, 17 | qty: stockQuantity, 18 | price: stockPrice, 19 | mode: "BUY", 20 | }); 21 | 22 | GeneralContext.closeBuyWindow(); 23 | }; 24 | 25 | const handleCancelClick = () => { 26 | GeneralContext.closeBuyWindow(); 27 | }; 28 | 29 | return ( 30 |
31 |
32 |
33 |
34 | Qty. 35 | setStockQuantity(e.target.value)} 40 | value={stockQuantity} 41 | /> 42 |
43 |
44 | Price 45 | setStockPrice(e.target.value)} 51 | value={stockPrice} 52 | /> 53 |
54 |
55 |
56 | 57 |
58 | Margin required ₹140.65 59 |
60 | 61 | Buy 62 | 63 | 64 | Cancel 65 | 66 |
67 |
68 |
69 | ); 70 | }; 71 | 72 | export default BuyActionWindow; 73 | -------------------------------------------------------------------------------- /dashboard/src/components/Dashboard.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Route, Routes } from "react-router-dom"; 3 | 4 | import Apps from "./Apps"; 5 | import Funds from "./Funds"; 6 | import Holdings from "./Holdings"; 7 | 8 | import Orders from "./Orders"; 9 | import Positions from "./Positions"; 10 | import Summary from "./Summary"; 11 | import WatchList from "./WatchList"; 12 | import { GeneralContextProvider } from "./GeneralContext"; 13 | 14 | const Dashboard = () => { 15 | return ( 16 |
17 | 18 | 19 | 20 |
21 | 22 | } /> 23 | } /> 24 | } /> 25 | } /> 26 | } /> 27 | } /> 28 | 29 |
30 |
31 | ); 32 | }; 33 | 34 | export default Dashboard; 35 | -------------------------------------------------------------------------------- /dashboard/src/components/DoughnoutChart.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Chart as ChartJS, ArcElement, Tooltip, Legend } from "chart.js"; 3 | import { Doughnut } from "react-chartjs-2"; 4 | 5 | ChartJS.register(ArcElement, Tooltip, Legend); 6 | 7 | export function DoughnutChart({ data }) { 8 | return ; 9 | } 10 | -------------------------------------------------------------------------------- /dashboard/src/components/Funds.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Link } from "react-router-dom"; 3 | 4 | const Funds = () => { 5 | return ( 6 | <> 7 |
8 |

Instant, zero-cost fund transfers with UPI

9 | Add funds 10 | Withdraw 11 |
12 | 13 |
14 |
15 | 16 |

Equity

17 |
18 | 19 |
20 |
21 |

Available margin

22 |

4,043.10

23 |
24 |
25 |

Used margin

26 |

3,757.30

27 |
28 |
29 |

Available cash

30 |

4,043.10

31 |
32 |
33 |
34 |

Opening Balance

35 |

4,043.10

36 |
37 |
38 |

Opening Balance

39 |

3736.40

40 |
41 |
42 |

Payin

43 |

4064.00

44 |
45 |
46 |

SPAN

47 |

0.00

48 |
49 |
50 |

Delivery margin

51 |

0.00

52 |
53 |
54 |

Exposure

55 |

0.00

56 |
57 |
58 |

Options premium

59 |

0.00

60 |
61 |
62 |
63 |

Collateral (Liquid funds)

64 |

0.00

65 |
66 |
67 |

Collateral (Equity)

68 |

0.00

69 |
70 |
71 |

Total Collateral

72 |

0.00

73 |
74 |
75 |
76 | 77 |
78 |
79 |

You don't have a commodity account

80 | Open Account 81 |
82 |
83 |
84 | 85 | ); 86 | }; 87 | 88 | export default Funds; 89 | -------------------------------------------------------------------------------- /dashboard/src/components/GeneralContext.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from "react"; 2 | 3 | import BuyActionWindow from "./BuyActionWindow"; 4 | 5 | const GeneralContext = React.createContext({ 6 | openBuyWindow: (uid) => {}, 7 | closeBuyWindow: () => {}, 8 | }); 9 | 10 | export const GeneralContextProvider = (props) => { 11 | const [isBuyWindowOpen, setIsBuyWindowOpen] = useState(false); 12 | const [selectedStockUID, setSelectedStockUID] = useState(""); 13 | 14 | const handleOpenBuyWindow = (uid) => { 15 | setIsBuyWindowOpen(true); 16 | setSelectedStockUID(uid); 17 | }; 18 | 19 | const handleCloseBuyWindow = () => { 20 | setIsBuyWindowOpen(false); 21 | setSelectedStockUID(""); 22 | }; 23 | 24 | return ( 25 | 31 | {props.children} 32 | {isBuyWindowOpen && } 33 | 34 | ); 35 | }; 36 | 37 | export default GeneralContext; 38 | -------------------------------------------------------------------------------- /dashboard/src/components/Holdings.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from "react"; 2 | import axios, { all } from "axios"; 3 | import { VerticalGraph } from "./VerticalGraph"; 4 | 5 | // import { holdings } from "../data/data"; 6 | 7 | const Holdings = () => { 8 | const [allHoldings, setAllHoldings] = useState([]); 9 | 10 | useEffect(() => { 11 | axios.get("http://localhost:3002/allHoldings").then((res) => { 12 | // console.log(res.data); 13 | setAllHoldings(res.data); 14 | }); 15 | }, []); 16 | 17 | // const labels = ['January', 'February', 'March', 'April', 'May', 'June', 'July']; 18 | const labels = allHoldings.map((subArray) => subArray["name"]); 19 | 20 | const data = { 21 | labels, 22 | datasets: [ 23 | { 24 | label: "Stock Price", 25 | data: allHoldings.map((stock) => stock.price), 26 | backgroundColor: "rgba(255, 99, 132, 0.5)", 27 | }, 28 | ], 29 | }; 30 | 31 | // export const data = { 32 | // labels, 33 | // datasets: [ 34 | // { 35 | // label: 'Dataset 1', 36 | // data: labels.map(() => faker.datatype.number({ min: 0, max: 1000 })), 37 | // backgroundColor: 'rgba(255, 99, 132, 0.5)', 38 | // }, 39 | // { 40 | // label: 'Dataset 2', 41 | // data: labels.map(() => faker.datatype.number({ min: 0, max: 1000 })), 42 | // backgroundColor: 'rgba(53, 162, 235, 0.5)', 43 | // }, 44 | // ], 45 | // }; 46 | 47 | return ( 48 | <> 49 |

Holdings ({allHoldings.length})

50 | 51 |
52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | {allHoldings.map((stock, index) => { 65 | const curValue = stock.price * stock.qty; 66 | const isProfit = curValue - stock.avg * stock.qty >= 0.0; 67 | const profClass = isProfit ? "profit" : "loss"; 68 | const dayClass = stock.isLoss ? "loss" : "profit"; 69 | 70 | return ( 71 | 72 | 73 | 74 | 75 | 76 | 77 | 80 | 81 | 82 | 83 | ); 84 | })} 85 |
InstrumentQty.Avg. costLTPCur. valP&LNet chg.Day chg.
{stock.name}{stock.qty}{stock.avg.toFixed(2)}{stock.price.toFixed(2)}{curValue.toFixed(2)} 78 | {(curValue - stock.avg * stock.qty).toFixed(2)} 79 | {stock.net}{stock.day}
86 |
87 | 88 |
89 |
90 |
91 | 29,875.55{" "} 92 |
93 |

Total investment

94 |
95 |
96 |
97 | 31,428.95{" "} 98 |
99 |

Current value

100 |
101 |
102 |
1,553.40 (+5.20%)
103 |

P&L

104 |
105 |
106 | 107 | 108 | ); 109 | }; 110 | 111 | export default Holdings; 112 | -------------------------------------------------------------------------------- /dashboard/src/components/Home.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | import Dashboard from "./Dashboard"; 4 | import TopBar from "./TopBar"; 5 | 6 | const Home = () => { 7 | return ( 8 | <> 9 | 10 | 11 | 12 | ); 13 | }; 14 | 15 | export default Home; 16 | -------------------------------------------------------------------------------- /dashboard/src/components/Menu.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from "react"; 2 | 3 | import { Link } from "react-router-dom"; 4 | 5 | const Menu = () => { 6 | const [selectedMenu, setSelectedMenu] = useState(0); 7 | const [isProfileDropdownOpen, setIsProfileDropdownOpen] = useState(false); 8 | 9 | const handleMenuClick = (index) => { 10 | setSelectedMenu(index); 11 | }; 12 | 13 | const handleProfileClick = (index) => { 14 | setIsProfileDropdownOpen(!isProfileDropdownOpen); 15 | }; 16 | 17 | const menuClass = "menu"; 18 | const activeMenuClass = "menu selected"; 19 | 20 | return ( 21 |
22 | 23 |
24 |
    25 |
  • 26 | handleMenuClick(0)} 30 | > 31 |

    32 | Dashboard 33 |

    34 | 35 |
  • 36 |
  • 37 | handleMenuClick(1)} 41 | > 42 |

    43 | Orders 44 |

    45 | 46 |
  • 47 |
  • 48 | handleMenuClick(2)} 52 | > 53 |

    54 | Holdings 55 |

    56 | 57 |
  • 58 |
  • 59 | handleMenuClick(3)} 63 | > 64 |

    65 | Positions 66 |

    67 | 68 |
  • 69 |
  • 70 | handleMenuClick(4)} 74 | > 75 |

    76 | Funds 77 |

    78 | 79 |
  • 80 |
  • 81 | handleMenuClick(6)} 85 | > 86 |

    87 | Apps 88 |

    89 | 90 |
  • 91 |
92 |
93 |
94 |
ZU
95 |

USERID

96 |
97 |
98 |
99 | ); 100 | }; 101 | 102 | export default Menu; 103 | -------------------------------------------------------------------------------- /dashboard/src/components/Orders.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Link } from "react-router-dom"; 3 | 4 | const Orders = () => { 5 | return ( 6 |
7 |
8 |

You haven't placed any orders today

9 | 10 | 11 | Get started 12 | 13 |
14 |
15 | ); 16 | }; 17 | 18 | export default Orders; 19 | -------------------------------------------------------------------------------- /dashboard/src/components/Positions.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | import { positions } from "../data/data"; 4 | 5 | const Positions = () => { 6 | return ( 7 | <> 8 |

Positions ({positions.length})

9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | {positions.map((stock, index) => { 23 | const curValue = stock.price * stock.qty; 24 | const isProfit = curValue - stock.avg * stock.qty >= 0.0; 25 | const profClass = isProfit ? "profit" : "loss"; 26 | const dayClass = stock.isLoss ? "loss" : "profit"; 27 | 28 | return ( 29 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | 39 | 40 | ); 41 | })} 42 |
ProductInstrumentQty.Avg.LTPP&LChg.
{stock.product}{stock.name}{stock.qty}{stock.avg.toFixed(2)}{stock.price.toFixed(2)} 36 | {(curValue - stock.avg * stock.qty).toFixed(2)} 37 | {stock.day}
43 |
44 | 45 | ); 46 | }; 47 | 48 | export default Positions; 49 | -------------------------------------------------------------------------------- /dashboard/src/components/Summary.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const Summary = () => { 4 | return ( 5 | <> 6 |
7 |
Hi, User!
8 |
9 |
10 | 11 |
12 | 13 |

Equity

14 |
15 | 16 |
17 |
18 |

3.74k

19 |

Margin available

20 |
21 |
22 | 23 |
24 |

25 | Margins used 0{" "} 26 |

27 |

28 | Opening balance 3.74k{" "} 29 |

30 |
31 |
32 |
33 |
34 | 35 |
36 | 37 |

Holdings (13)

38 |
39 | 40 |
41 |
42 |

43 | 1.55k +5.20%{" "} 44 |

45 |

P&L

46 |
47 |
48 | 49 |
50 |

51 | Current Value 31.43k{" "} 52 |

53 |

54 | Investment 29.88k{" "} 55 |

56 |
57 |
58 |
59 |
60 | 61 | ); 62 | }; 63 | 64 | export default Summary; 65 | -------------------------------------------------------------------------------- /dashboard/src/components/TopBar.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | import Menu from "./Menu"; 4 | 5 | const TopBar = () => { 6 | return ( 7 |
8 |
9 |
10 |

NIFTY 50

11 |

{100.2}

12 |

13 |
14 |
15 |

SENSEX

16 |

{100.2}

17 |

18 |
19 |
20 | 21 | 22 |
23 | ); 24 | }; 25 | 26 | export default TopBar; 27 | -------------------------------------------------------------------------------- /dashboard/src/components/VerticalGraph.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { 3 | Chart as ChartJS, 4 | CategoryScale, 5 | LinearScale, 6 | BarElement, 7 | Title, 8 | Tooltip, 9 | Legend, 10 | } from "chart.js"; 11 | import { Bar } from "react-chartjs-2"; 12 | 13 | ChartJS.register( 14 | CategoryScale, 15 | LinearScale, 16 | BarElement, 17 | Title, 18 | Tooltip, 19 | Legend 20 | ); 21 | 22 | export const options = { 23 | responsive: true, 24 | plugins: { 25 | legend: { 26 | position: "top", 27 | }, 28 | title: { 29 | display: true, 30 | text: "Holdings", 31 | }, 32 | }, 33 | }; 34 | 35 | export function VerticalGraph({ data }) { 36 | return ; 37 | } 38 | -------------------------------------------------------------------------------- /dashboard/src/components/WatchList.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useContext } from "react"; 2 | 3 | import axios from "axios"; 4 | 5 | import GeneralContext from "./GeneralContext"; 6 | 7 | import { Tooltip, Grow } from "@mui/material"; 8 | 9 | import { 10 | BarChartOutlined, 11 | KeyboardArrowDown, 12 | KeyboardArrowUp, 13 | MoreHoriz, 14 | } from "@mui/icons-material"; 15 | 16 | import { watchlist } from "../data/data"; 17 | import { DoughnutChart } from "./DoughnoutChart"; 18 | 19 | const labels = watchlist.map((subArray) => subArray["name"]); 20 | 21 | const WatchList = () => { 22 | const data = { 23 | labels, 24 | datasets: [ 25 | { 26 | label: "Price", 27 | data: watchlist.map((stock) => stock.price), 28 | backgroundColor: [ 29 | "rgba(255, 99, 132, 0.5)", 30 | "rgba(54, 162, 235, 0.5)", 31 | "rgba(255, 206, 86, 0.5)", 32 | "rgba(75, 192, 192, 0.5)", 33 | "rgba(153, 102, 255, 0.5)", 34 | "rgba(255, 159, 64, 0.5)", 35 | ], 36 | borderColor: [ 37 | "rgba(255, 99, 132, 1)", 38 | "rgba(54, 162, 235, 1)", 39 | "rgba(255, 206, 86, 1)", 40 | "rgba(75, 192, 192, 1)", 41 | "rgba(153, 102, 255, 1)", 42 | "rgba(255, 159, 64, 1)", 43 | ], 44 | borderWidth: 1, 45 | }, 46 | ], 47 | }; 48 | 49 | // export const data = { 50 | // labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"], 51 | // datasets: [ 52 | // { 53 | // label: "# of Votes", 54 | // data: [12, 19, 3, 5, 2, 3], 55 | // backgroundColor: [ 56 | // "rgba(255, 99, 132, 0.2)", 57 | // "rgba(54, 162, 235, 0.2)", 58 | // "rgba(255, 206, 86, 0.2)", 59 | // "rgba(75, 192, 192, 0.2)", 60 | // "rgba(153, 102, 255, 0.2)", 61 | // "rgba(255, 159, 64, 0.2)", 62 | // ], 63 | // borderColor: [ 64 | // "rgba(255, 99, 132, 1)", 65 | // "rgba(54, 162, 235, 1)", 66 | // "rgba(255, 206, 86, 1)", 67 | // "rgba(75, 192, 192, 1)", 68 | // "rgba(153, 102, 255, 1)", 69 | // "rgba(255, 159, 64, 1)", 70 | // ], 71 | // borderWidth: 1, 72 | // }, 73 | // ], 74 | // }; 75 | 76 | return ( 77 |
78 |
79 | 86 | {watchlist.length} / 50 87 |
88 | 89 |
    90 | {watchlist.map((stock, index) => { 91 | return ; 92 | })} 93 |
94 | 95 | 96 |
97 | ); 98 | }; 99 | 100 | export default WatchList; 101 | 102 | const WatchListItem = ({ stock }) => { 103 | const [showWatchlistActions, setShowWatchlistActions] = useState(false); 104 | 105 | const handleMouseEnter = (e) => { 106 | setShowWatchlistActions(true); 107 | }; 108 | 109 | const handleMouseLeave = (e) => { 110 | setShowWatchlistActions(false); 111 | }; 112 | 113 | return ( 114 |
  • 115 |
    116 |

    {stock.name}

    117 |
    118 | {stock.percent} 119 | {stock.isDown ? ( 120 | 121 | ) : ( 122 | 123 | )} 124 | {stock.price} 125 |
    126 |
    127 | {showWatchlistActions && } 128 |
  • 129 | ); 130 | }; 131 | 132 | const WatchListActions = ({ uid }) => { 133 | const generalContext = useContext(GeneralContext); 134 | 135 | const handleBuyClick = () => { 136 | generalContext.openBuyWindow(uid); 137 | }; 138 | 139 | return ( 140 | 141 | 142 | 149 | 150 | 151 | 157 | 158 | 159 | 165 | 168 | 169 | 170 | 173 | 174 | 175 | 176 | ); 177 | }; 178 | -------------------------------------------------------------------------------- /dashboard/src/data/data.js: -------------------------------------------------------------------------------- 1 | export const watchlist = [ 2 | { 3 | name: "INFY", 4 | price: 1555.45, 5 | percent: "-1.60%", 6 | isDown: true, 7 | }, 8 | { 9 | name: "ONGC", 10 | price: 116.8, 11 | percent: "-0.09%", 12 | isDown: true, 13 | }, 14 | { 15 | name: "TCS", 16 | price: 3194.8, 17 | percent: "-0.25%", 18 | isDown: true, 19 | }, 20 | { 21 | name: "KPITTECH", 22 | price: 266.45, 23 | percent: "3.54%", 24 | isDown: false, 25 | }, 26 | { 27 | name: "QUICKHEAL", 28 | price: 308.55, 29 | percent: "-0.15%", 30 | isDown: true, 31 | }, 32 | { 33 | name: "WIPRO", 34 | price: 577.75, 35 | percent: "0.32%", 36 | isDown: false, 37 | }, 38 | { 39 | name: "M&M", 40 | price: 779.8, 41 | percent: "-0.01%", 42 | isDown: true, 43 | }, 44 | { 45 | name: "RELIANCE", 46 | price: 2112.4, 47 | percent: "1.44%", 48 | isDown: false, 49 | }, 50 | { 51 | name: "HUL", 52 | price: 512.4, 53 | percent: "1.04%", 54 | isDown: false, 55 | }, 56 | ]; 57 | 58 | // holdings 59 | export const holdings = [ 60 | { 61 | name: "BHARTIARTL", 62 | qty: 2, 63 | avg: 538.05, 64 | price: 541.15, 65 | net: "+0.58%", 66 | day: "+2.99%", 67 | }, 68 | { 69 | name: "HDFCBANK", 70 | qty: 2, 71 | avg: 1383.4, 72 | price: 1522.35, 73 | net: "+10.04%", 74 | day: "+0.11%", 75 | }, 76 | { 77 | name: "HINDUNILVR", 78 | qty: 1, 79 | avg: 2335.85, 80 | price: 2417.4, 81 | net: "+3.49%", 82 | day: "+0.21%", 83 | }, 84 | { 85 | name: "INFY", 86 | qty: 1, 87 | avg: 1350.5, 88 | price: 1555.45, 89 | net: "+15.18%", 90 | day: "-1.60%", 91 | isLoss: true, 92 | }, 93 | { 94 | name: "ITC", 95 | qty: 5, 96 | avg: 202.0, 97 | price: 207.9, 98 | net: "+2.92%", 99 | day: "+0.80%", 100 | }, 101 | { 102 | name: "KPITTECH", 103 | qty: 5, 104 | avg: 250.3, 105 | price: 266.45, 106 | net: "+6.45%", 107 | day: "+3.54%", 108 | }, 109 | { 110 | name: "M&M", 111 | qty: 2, 112 | avg: 809.9, 113 | price: 779.8, 114 | net: "-3.72%", 115 | day: "-0.01%", 116 | isLoss: true, 117 | }, 118 | { 119 | name: "RELIANCE", 120 | qty: 1, 121 | avg: 2193.7, 122 | price: 2112.4, 123 | net: "-3.71%", 124 | day: "+1.44%", 125 | }, 126 | { 127 | name: "SBIN", 128 | qty: 4, 129 | avg: 324.35, 130 | price: 430.2, 131 | net: "+32.63%", 132 | day: "-0.34%", 133 | isLoss: true, 134 | }, 135 | { 136 | name: "SGBMAY29", 137 | qty: 2, 138 | avg: 4727.0, 139 | price: 4719.0, 140 | net: "-0.17%", 141 | day: "+0.15%", 142 | }, 143 | { 144 | name: "TATAPOWER", 145 | qty: 5, 146 | avg: 104.2, 147 | price: 124.15, 148 | net: "+19.15%", 149 | day: "-0.24%", 150 | isLoss: true, 151 | }, 152 | { 153 | name: "TCS", 154 | qty: 1, 155 | avg: 3041.7, 156 | price: 3194.8, 157 | net: "+5.03%", 158 | day: "-0.25%", 159 | isLoss: true, 160 | }, 161 | { 162 | name: "WIPRO", 163 | qty: 4, 164 | avg: 489.3, 165 | price: 577.75, 166 | net: "+18.08%", 167 | day: "+0.32%", 168 | }, 169 | ]; 170 | 171 | // positions 172 | export const positions = [ 173 | { 174 | product: "CNC", 175 | name: "EVEREADY", 176 | qty: 2, 177 | avg: 316.27, 178 | price: 312.35, 179 | net: "+0.58%", 180 | day: "-1.24%", 181 | isLoss: true, 182 | }, 183 | { 184 | product: "CNC", 185 | name: "JUBLFOOD", 186 | qty: 1, 187 | avg: 3124.75, 188 | price: 3082.65, 189 | net: "+10.04%", 190 | day: "-1.35%", 191 | isLoss: true, 192 | }, 193 | ]; 194 | -------------------------------------------------------------------------------- /dashboard/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | 15 | .dashboard-container { 16 | width: 100%; 17 | height: 90vh; 18 | display: flex; 19 | align-items: center; 20 | box-sizing: border-box; 21 | } 22 | 23 | .content { 24 | flex-basis: 68%; 25 | height: 100%; 26 | box-sizing: border-box; 27 | overflow-y: auto; 28 | padding: 3% 2%; 29 | } 30 | 31 | .funds { 32 | width: 100%; 33 | text-align: right; 34 | display: flex; 35 | align-items: center; 36 | justify-content: flex-end; 37 | } 38 | 39 | .funds p { 40 | font-size: 0.8rem; 41 | color: rgb(179, 179, 179); 42 | margin-right: 8px; 43 | } 44 | 45 | .btn { 46 | text-decoration: none; 47 | padding: 10px 20px; 48 | border-radius: 2px; 49 | color: #fff; 50 | margin-right: 2px; 51 | margin-left: 2px; 52 | } 53 | 54 | .btn-green { 55 | background: #4caf50; 56 | } 57 | 58 | .btn-blue { 59 | background: #4184f3; 60 | } 61 | 62 | .row { 63 | width: 100%; 64 | display: flex; 65 | align-items: center; 66 | justify-content: space-evenly; 67 | margin-top: 5%; 68 | } 69 | 70 | .col { 71 | flex-basis: 48%; 72 | text-align: left; 73 | } 74 | 75 | .col span { 76 | display: flex; 77 | align-items: center; 78 | margin-bottom: 2%; 79 | } 80 | 81 | .section-icon { 82 | transform: scale(0.8); 83 | color: rgb(66, 56, 56); 84 | padding: 0; 85 | margin: 0; 86 | margin-right: 10px; 87 | } 88 | 89 | .col span p { 90 | display: inline-block; 91 | font-size: 1.2rem; 92 | font-weight: 300; 93 | } 94 | 95 | .table { 96 | border: 1px solid #ddd; 97 | padding: 5% 8%; 98 | } 99 | 100 | .table .data { 101 | display: flex; 102 | align-items: center; 103 | justify-content: space-between; 104 | } 105 | 106 | .table .data > * { 107 | margin-bottom: 5%; 108 | } 109 | 110 | .table .data p:first-child { 111 | font-size: 1rem; 112 | color: rgb(151, 151, 151); 113 | } 114 | 115 | .imp { 116 | font-size: 1.5rem; 117 | color: #313131; 118 | } 119 | 120 | .colored { 121 | color: #4184f3; 122 | } 123 | 124 | .table hr { 125 | border: none; 126 | background: #d1d1d1; 127 | height: 0.5px; 128 | margin-bottom: 5%; 129 | } 130 | 131 | .commodity { 132 | padding: 2% 8%; 133 | text-align: center; 134 | } 135 | 136 | .commodity p { 137 | margin-bottom: 10%; 138 | color: #c9c9c9; 139 | } 140 | 141 | /* sudo selectors */ 142 | .btn-blue:hover { 143 | background: #74a7fa; 144 | } 145 | 146 | .btn-green:hover { 147 | background: #7bdd7f; 148 | } 149 | 150 | .title { 151 | font-size: 1.3rem; 152 | font-weight: 300; 153 | color: rgb(71, 71, 71); 154 | margin-bottom: 2%; 155 | } 156 | 157 | .order-table table { 158 | width: 100%; 159 | border-collapse: collapse; 160 | } 161 | 162 | .order-table tr { 163 | border-top: 1px solid #f1f1f1; 164 | border-bottom: 1px solid #f1f1f1; 165 | } 166 | 167 | .order-table th { 168 | text-align: right; 169 | padding: 15px 10px; 170 | color: rgb(145, 145, 145); 171 | font-weight: 300; 172 | font-size: 0.8rem; 173 | } 174 | 175 | .order-table tr th:first-child, 176 | .order-table tr td:first-child { 177 | text-align: left; 178 | } 179 | 180 | .order-table tr th:nth-child(1), 181 | .order-table tr th:nth-child(4) { 182 | border-right: 1px solid #f1f1f1; 183 | } 184 | 185 | .order-table tr td:nth-child(1), 186 | .order-table tr td:nth-child(4) { 187 | border-right: 1px solid #f1f1f1; 188 | } 189 | 190 | .order-table tr td:last-child { 191 | font-size: 0.6rem; 192 | } 193 | 194 | .order-table td { 195 | padding: 10px 10px; 196 | text-align: right; 197 | font-weight: 400; 198 | font-size: 0.9rem; 199 | color: rgb(73, 73, 73); 200 | } 201 | 202 | .align-left { 203 | text-align: left; 204 | } 205 | 206 | .order-table td.profit { 207 | color: rgb(72, 194, 55); 208 | } 209 | 210 | .order-table td.loss { 211 | color: rgb(250, 118, 78); 212 | } 213 | 214 | .row { 215 | display: flex; 216 | align-items: center; 217 | justify-content: space-between; 218 | margin-top: 5%; 219 | } 220 | 221 | .col { 222 | flex-basis: 33%; 223 | } 224 | 225 | .col h5 { 226 | font-size: 1.8rem; 227 | color: rgb(71, 71, 71); 228 | font-weight: 300; 229 | } 230 | 231 | .col h5 span { 232 | font-weight: 300; 233 | font-size: 0.9rem; 234 | } 235 | 236 | .col p { 237 | font-size: 0.8rem; 238 | color: rgb(153, 153, 153); 239 | font-weight: 300; 240 | margin-top: 2%; 241 | } 242 | 243 | .row .col:last-child h5 { 244 | color: rgb(72, 194, 55); 245 | } 246 | 247 | /* sudo selector */ 248 | .item:hover { 249 | cursor: pointer; 250 | } 251 | 252 | .menu-container { 253 | flex-basis: 68%; 254 | height: 100%; 255 | padding: 10px 20px; 256 | box-sizing: border-box; 257 | display: flex; 258 | align-items: center; 259 | justify-content: space-between; 260 | } 261 | 262 | .logo { 263 | width: 30px; 264 | height: 20px; 265 | } 266 | 267 | .menus { 268 | display: flex; 269 | align-items: center; 270 | justify-content: space-evenly; 271 | } 272 | 273 | .menus ul { 274 | list-style-type: none; 275 | } 276 | 277 | .menus li { 278 | display: inline-block; 279 | margin-right: 30px; 280 | text-decoration: none; 281 | } 282 | 283 | .menu { 284 | font-size: 0.8rem; 285 | font-weight: 400; 286 | color: rgb(70, 70, 70); 287 | } 288 | 289 | .menu.selected { 290 | color: rgb(245, 104, 52); 291 | } 292 | 293 | hr { 294 | border-left: 0.8px solid rgb(243, 242, 242); 295 | height: 30px; 296 | } 297 | 298 | .profile { 299 | display: flex; 300 | align-items: center; 301 | justify-content: space-evenly; 302 | margin-left: 20px; 303 | } 304 | 305 | .profile .avatar { 306 | width: 30px; 307 | height: 30px; 308 | text-align: center; 309 | position: relative; 310 | font-size: 0.7rem; 311 | font-weight: 400; 312 | color: rgb(221, 139, 221); 313 | justify-content: center; 314 | align-items: center; 315 | border-radius: 100%; 316 | text-align: center; 317 | display: flex; 318 | background: rgb(252, 229, 252); 319 | margin-right: 8px; 320 | } 321 | 322 | .profile .username { 323 | font-size: 0.8rem; 324 | font-weight: 300; 325 | } 326 | 327 | /* sudo selectors */ 328 | 329 | .menu:hover { 330 | color: rgb(245, 104, 52); 331 | } 332 | 333 | .profile:hover { 334 | cursor: pointer; 335 | } 336 | 337 | .profile:hover .username { 338 | cursor: pointer; 339 | color: rgb(223, 91, 43); 340 | } 341 | 342 | .orders { 343 | width: 100%; 344 | height: 90vh; 345 | } 346 | 347 | .no-orders { 348 | display: flex; 349 | flex-direction: column; 350 | align-items: center; 351 | justify-content: center; 352 | } 353 | 354 | .no-orders .icon { 355 | transform: scale(4); 356 | color: rgb(173, 173, 173); 357 | display: block; 358 | } 359 | 360 | .no-orders p { 361 | margin-top: 6%; 362 | color: rgb(173, 173, 173); 363 | font-size: 1rem; 364 | font-weight: 300; 365 | } 366 | 367 | .btn { 368 | text-decoration: none; 369 | background: rgb(77, 77, 248); 370 | padding: 10px 20px; 371 | border-radius: 2px; 372 | color: #fff; 373 | margin-top: 2%; 374 | } 375 | 376 | .btn:hover { 377 | background: rgb(110, 110, 253); 378 | } 379 | 380 | .title { 381 | font-size: 1.3rem; 382 | font-weight: 300; 383 | color: rgb(71, 71, 71); 384 | margin-bottom: 2%; 385 | } 386 | 387 | .order-table table { 388 | width: 100%; 389 | border-collapse: collapse; 390 | } 391 | 392 | .order-table tr { 393 | border-top: 1px solid rgb(211, 211, 211); 394 | border-bottom: 1px solid rgb(211, 211, 211); 395 | } 396 | 397 | .order-table th { 398 | text-align: right; 399 | padding: 15px 10px; 400 | color: rgb(145, 145, 145); 401 | font-weight: 300; 402 | font-size: 0.8rem; 403 | } 404 | 405 | .order-table tr th:first-child, 406 | .order-table tr td:first-child { 407 | text-align: left; 408 | } 409 | 410 | .order-table tr td:first-child p { 411 | background: rgb(255, 197, 197); 412 | color: rgb(233, 120, 120); 413 | width: 50%; 414 | text-align: center; 415 | border-radius: 2px; 416 | } 417 | 418 | .order-table tr td:last-child { 419 | font-size: 0.6rem; 420 | } 421 | 422 | .order-table td { 423 | padding: 10px 10px; 424 | text-align: right; 425 | font-weight: 400; 426 | font-size: 0.9rem; 427 | color: rgb(73, 73, 73); 428 | } 429 | 430 | .align-left { 431 | text-align: left; 432 | } 433 | 434 | .order-table td.profit { 435 | color: rgb(72, 194, 55); 436 | } 437 | 438 | .order-table td.loss { 439 | color: rgb(250, 118, 78); 440 | } 441 | 442 | .row { 443 | display: flex; 444 | align-items: center; 445 | justify-content: space-between; 446 | margin-top: 5%; 447 | } 448 | 449 | .col { 450 | flex-basis: 33%; 451 | } 452 | 453 | .col h5 { 454 | font-size: 1.8rem; 455 | color: rgb(71, 71, 71); 456 | font-weight: 300; 457 | } 458 | 459 | .col h5 span { 460 | font-weight: 300; 461 | font-size: 0.9rem; 462 | } 463 | 464 | .col p { 465 | font-size: 0.8rem; 466 | color: rgb(153, 153, 153); 467 | font-weight: 300; 468 | margin-top: 2%; 469 | } 470 | 471 | .row .col:last-child h5 { 472 | color: rgb(72, 194, 55); 473 | } 474 | 475 | /* sudo selector */ 476 | .item:hover { 477 | cursor: pointer; 478 | } 479 | 480 | .username h6 { 481 | font-size: 1.5rem; 482 | font-weight: 400; 483 | color: rgb(83, 83, 83); 484 | margin-bottom: 20px; 485 | } 486 | 487 | .divider { 488 | border: none; 489 | background: #d1d1d1; 490 | height: 1px; 491 | margin: 20px 0; 492 | margin-bottom: 5%; 493 | } 494 | 495 | .section { 496 | padding-bottom: 2%; 497 | } 498 | 499 | .section span { 500 | display: flex; 501 | align-items: center; 502 | margin-bottom: 2%; 503 | } 504 | 505 | .section span p { 506 | display: inline-block; 507 | font-size: 1.2rem; 508 | font-weight: 300; 509 | } 510 | 511 | .section-icon { 512 | transform: scale(0.8); 513 | color: rgb(112, 112, 112); 514 | padding: 0; 515 | margin: 0; 516 | margin-right: 10px; 517 | } 518 | 519 | .data { 520 | width: 50%; 521 | display: flex; 522 | align-items: center; 523 | justify-content: space-evenly; 524 | } 525 | 526 | .data .first h3 { 527 | font-size: 2.5rem; 528 | font-weight: 300; 529 | color: rgb(71, 71, 71); 530 | } 531 | 532 | .data .first p { 533 | font-size: 0.8rem; 534 | color: rgb(136, 136, 136); 535 | } 536 | 537 | .data .first small { 538 | font-size: 0.8rem; 539 | color: rgb(72, 194, 55); 540 | } 541 | 542 | .data .first .profit { 543 | color: rgb(72, 194, 55); 544 | } 545 | 546 | .data hr { 547 | border-left: 0.6px solid rgb(243, 242, 242); 548 | height: 70px; 549 | } 550 | 551 | .data .second p { 552 | font-size: 0.8rem; 553 | color: rgb(136, 136, 136); 554 | margin-bottom: 10px; 555 | white-space: nowrap; 556 | } 557 | 558 | .data .second p span { 559 | display: inline; 560 | margin-left: 5%; 561 | font-size: 0.9rem; 562 | color: rgb(100, 100, 100); 563 | } 564 | 565 | .section hr { 566 | margin-top: 6%; 567 | } 568 | 569 | .topbar-container { 570 | width: 100%; 571 | height: 10vh; 572 | display: flex; 573 | align-items: center; 574 | box-shadow: 0px 0px 4px 2px rgb(236, 235, 235); 575 | box-sizing: border-box; 576 | z-index: 9; 577 | } 578 | 579 | .indices-container { 580 | flex-basis: 32%; 581 | height: 100%; 582 | padding: 10px 20px; 583 | border-right: 1px solid rgb(224, 224, 224); 584 | box-sizing: border-box; 585 | display: flex; 586 | align-items: center; 587 | justify-content: space-around; 588 | } 589 | 590 | .nifty { 591 | flex-basis: 40%; 592 | display: flex; 593 | align-items: center; 594 | justify-content: space-evenly; 595 | z-index: -2; 596 | } 597 | 598 | .sensex { 599 | flex-basis: 40%; 600 | display: flex; 601 | align-items: center; 602 | justify-content: space-evenly; 603 | } 604 | 605 | .nifty > *, 606 | .sensex > * { 607 | margin-right: 8px; 608 | } 609 | 610 | .index { 611 | font-size: 0.8rem; 612 | font-weight: 500; 613 | text-transform: uppercase; 614 | color: rgb(97, 97, 97); 615 | white-space: nowrap; 616 | } 617 | 618 | .index-points { 619 | font-size: 0.8rem; 620 | font-weight: 500; 621 | color: rgb(223, 73, 73); 622 | } 623 | 624 | .percent { 625 | font-size: 0.8rem; 626 | font-weight: 400; 627 | color: rgb(146, 146, 146); 628 | } 629 | 630 | /* sudo selectors */ 631 | .index:hover { 632 | cursor: pointer; 633 | } 634 | 635 | .watchlist-container { 636 | flex-basis: 32%; 637 | height: 100%; 638 | box-sizing: border-box; 639 | box-shadow: 0px 0px 4px 1px rgb(236, 235, 235); 640 | overflow-y: auto; 641 | position: relative; 642 | } 643 | 644 | .search-container { 645 | display: flex; 646 | align-items: center; 647 | justify-content: space-evenly; 648 | position: relative; 649 | } 650 | 651 | .search { 652 | width: 100%; 653 | height: 6%; 654 | border: none; 655 | padding: 15px 20px; 656 | font-size: 0.9rem; 657 | font-weight: 400; 658 | color: rgb(241, 241, 241); 659 | border-bottom: 0.8px solid rgb(235, 234, 234); 660 | } 661 | 662 | .counts { 663 | position: absolute; 664 | right: 20px; 665 | font-size: 0.9rem; 666 | font-weight: 400; 667 | color: rgb(177, 177, 177); 668 | } 669 | 670 | .list { 671 | list-style-type: none; 672 | padding-bottom: 12%; 673 | } 674 | 675 | .list li { 676 | border-bottom: 0.8px solid rgb(235, 234, 234); 677 | padding: 12px 10px 12px 14px; 678 | position: relative; 679 | } 680 | 681 | .item { 682 | display: flex; 683 | align-items: center; 684 | justify-content: space-between; 685 | font-weight: 300; 686 | font-size: 0.8rem; 687 | position: relative; 688 | } 689 | 690 | .item-info { 691 | display: flex; 692 | justify-content: space-evenly; 693 | align-items: center; 694 | } 695 | 696 | .item-info > * { 697 | margin-right: 8px; 698 | } 699 | 700 | .item-info span:nth-child(1) { 701 | color: rgb(141, 141, 141); 702 | flex: 1; 703 | } 704 | 705 | .item-info span:nth-child(2) { 706 | color: rgb(223, 73, 73); 707 | margin-right: 12px; 708 | flex: 2; 709 | } 710 | 711 | .item-info span:nth-child(3) { 712 | color: rgb(223, 73, 73); 713 | flex: 1; 714 | } 715 | 716 | .actions { 717 | position: absolute; 718 | top: 0; 719 | left: 0; 720 | width: 100%; 721 | height: 100%; 722 | align-items: center; 723 | justify-content: flex-end; 724 | display: none; 725 | } 726 | 727 | .actions span button { 728 | width: 40px; 729 | height: 30px; 730 | border-radius: 4px; 731 | text-align: center; 732 | margin-right: 8px; 733 | cursor: pointer; 734 | } 735 | 736 | .buy { 737 | background-color: #4184f3; 738 | color: #fff; 739 | font-weight: 400; 740 | font-size: 0.8rem; 741 | border: 0.7px solid #4184f3; 742 | } 743 | 744 | .sell { 745 | background-color: #ff5722; 746 | color: #fff; 747 | font-weight: 400; 748 | font-size: 0.8rem; 749 | border: 0.7px solid #ff5722; 750 | } 751 | 752 | .action { 753 | background-color: #fff; 754 | border: 0.7px solid #9b9b9b; 755 | } 756 | 757 | .icon { 758 | transform: scale(0.7); 759 | color: rgb(65, 65, 65); 760 | } 761 | 762 | .watchlist-number { 763 | height: 6%; 764 | width: 32%; 765 | box-sizing: border-box; 766 | position: fixed; 767 | display: inline-flex; 768 | align-items: center; 769 | justify-content: space-between; 770 | bottom: 1px; 771 | padding: 20px 20px 20px 0; 772 | left: 0; 773 | border: 1px solid rgb(231, 231, 231); 774 | z-index: 5; 775 | background: #fff; 776 | } 777 | 778 | .watchlist-number ul { 779 | list-style-type: none; 780 | } 781 | 782 | .watchlist-number ul li { 783 | display: inline-block; 784 | padding: 10px 20px; 785 | border-right: 1px solid rgb(231, 231, 231); 786 | } 787 | 788 | .watchlist-number ul li:nth-child(1) { 789 | color: rgb(223, 73, 73); 790 | } 791 | 792 | .down { 793 | color: rgb(223, 73, 73); 794 | } 795 | 796 | .up { 797 | color: rgb(103, 201, 136); 798 | } 799 | 800 | .settings { 801 | transform: scale(0.8); 802 | color: rgb(105, 105, 105); 803 | } 804 | 805 | /* sudo selectors */ 806 | .search:focus { 807 | outline: none; 808 | } 809 | 810 | .list li:hover { 811 | cursor: move; 812 | background-color: #f3f3f3; 813 | } 814 | 815 | .list li:hover > .actions { 816 | display: flex; 817 | cursor: move; 818 | } 819 | 820 | /* TODO */ 821 | .list li::before { 822 | content: ""; 823 | background: transparent; 824 | width: 100%; 825 | height: 100%; 826 | position: absolute; 827 | top: 0; 828 | left: 0; 829 | } 830 | 831 | .watchlist-number ul li:hover { 832 | color: rgb(245, 104, 52); 833 | cursor: pointer; 834 | background: rgb(243, 243, 243); 835 | } 836 | 837 | .settings:hover { 838 | cursor: pointer; 839 | } 840 | 841 | .action:hover { 842 | background-color: rgb(212, 212, 212); 843 | } 844 | 845 | 846 | 847 | -------------------------------------------------------------------------------- /dashboard/src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom/client"; 3 | import { BrowserRouter, Route, Routes } from "react-router-dom"; 4 | import "./index.css"; 5 | import Home from "./components/Home"; 6 | 7 | const root = ReactDOM.createRoot(document.getElementById("root")); 8 | root.render( 9 | 10 | 11 | 12 | } /> 13 | 14 | 15 | 16 | ); 17 | -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 13 | 14 | The page will reload when you make changes.\ 15 | You may also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 35 | 36 | If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. 39 | 40 | You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "frontend", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.17.0", 7 | "@testing-library/react": "^13.4.0", 8 | "@testing-library/user-event": "^13.5.0", 9 | "react": "^18.2.0", 10 | "react-dom": "^18.2.0", 11 | "react-scripts": "5.0.1", 12 | "web-vitals": "^2.1.4" 13 | }, 14 | "scripts": { 15 | "start": "react-scripts start", 16 | "build": "react-scripts build", 17 | "test": "react-scripts test", 18 | "eject": "react-scripts eject" 19 | }, 20 | "eslintConfig": { 21 | "extends": [ 22 | "react-app", 23 | "react-app/jest" 24 | ] 25 | }, 26 | "browserslist": { 27 | "production": [ 28 | ">0.2%", 29 | "not dead", 30 | "not op_mini all" 31 | ], 32 | "development": [ 33 | "last 1 chrome version", 34 | "last 1 firefox version", 35 | "last 1 safari version" 36 | ] 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /frontend/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | React App 9 | 10 | 11 | 12 |
    13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /frontend/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /frontend/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /frontend/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | 15 | .nav-link{ 16 | margin-left: 40px; 17 | } 18 | 19 | #supportHero{ 20 | background-color: rgb(56, 126, 209); 21 | color: white; 22 | } 23 | 24 | #supportHero a{ 25 | color: white; 26 | } 27 | 28 | #supportWrapper{ 29 | display: flex; 30 | justify-content: space-between; 31 | margin: 0 150px; 32 | } 33 | 34 | #supportHero input{ 35 | padding: 20px 50px; 36 | width: 100%; 37 | font-size: 20px; 38 | border-radius: 10px; 39 | border: none; 40 | } -------------------------------------------------------------------------------- /frontend/src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom/client"; 3 | import { BrowserRouter, Routes, Route } from "react-router-dom"; 4 | import "./index.css"; 5 | 6 | import HomePage from "./landing_page/home/HomePage"; 7 | import Signup from "./landing_page/signup/Signup"; 8 | import AboutPage from "./landing_page/about/AboutPage"; 9 | import ProductPage from "./landing_page/products/ProductsPage"; 10 | import PricingPage from "./landing_page/pricing/PricingPage"; 11 | import SupportPage from "./landing_page/support/SupportPage"; 12 | 13 | import NotFound from "./landing_page/NotFound"; 14 | import Navbar from "./landing_page/Navbar"; 15 | import Footer from "./landing_page/Footer"; 16 | 17 | const root = ReactDOM.createRoot(document.getElementById("root")); 18 | root.render( 19 | 20 | 21 | 22 | } /> 23 | } /> 24 | } /> 25 | } /> 26 | } /> 27 | } /> 28 | } /> 29 | 30 |