236 Commits

Author SHA1 Message Date
notkshitij b1207b1d3a Added NODE_ENV=production for backend, frontend and model containers. 2025-07-25 11:56:19 +05:30
notkshitij 0722bf5086 Upgraded packages for models. 2025-07-23 19:42:32 +05:30
notkshitij b818f7842b Removed commented out part from model.js 2025-07-23 18:51:45 +05:30
notkshitij d7f26c5e1d Added frontend uri env in model container 2025-07-23 18:40:15 +05:30
notkshitij e3bec4d1d0 Writing backend uri to .env after copying contents and cleaning up after build. 2025-07-23 17:47:45 +05:30
notkshitij 0ee14ddf99 Added a better comment letting know why certain env vars + ports shouldn't be changed. Also modified .env file. 2025-07-23 17:44:55 +05:30
notkshitij d84c2879cd Renamed .exampleenv to .env 2025-07-23 17:42:49 +05:30
notkshitij 94659c9afa Added ignore files for docker and git in .dockerignore. 2025-07-23 17:31:07 +05:30
notkshitij e7d83032e2 Changed .env to backend uri var passed while building the docker image. 2025-07-23 17:27:29 +05:30
notkshitij 535ef056fd Passing refresh token in docker compose + added it in .exampleenv. Also, models container runs as root and depends on frontend. Lastly, changed frontend uri to localhost. 2025-07-23 17:25:42 +05:30
notkshitij 2957930be4 No longer generating refresh token while building the container. Also switching to nonroot user before copying files and installing dependencies. 2025-07-23 17:24:13 +05:30
notkshitij e7ae4c93b1 No longer generating random value for refresh token while building the image. Realized it was not a good idea. 2025-07-23 17:23:22 +05:30
notkshitij f32f7ddc6e Fixed a major issue in building docker image for backend where the env file was not being copied which resulted in backend not working! 2025-07-23 17:13:27 +05:30
notkshitij 220f822f3d Changed to localhost for env vars for model and backend in frontend dockerfile. 2025-07-23 01:58:59 +05:30
notkshitij fb8ac9eb82 Fixed dockerignore for backend again, what was I thinking? welp it's 2am almost so... 2025-07-23 01:55:06 +05:30
notkshitij 3a7ee73233 Fixed dockerignore for backend. Accidentally added package.json instead of package-lock.json 2025-07-23 01:52:50 +05:30
notkshitij d4748fd99f Same line cleanup for apt 2025-07-23 01:47:22 +05:30
notkshitij 0003858e3a Removed test2.js, not req. 2025-07-23 01:46:41 +05:30
notkshitij 30464136a3 in alphabetical order .dockerignore for backend. 2025-07-23 01:46:29 +05:30
notkshitij 1b10587747 Changed URI's to Docker ones in frontend dockerfile. 2025-07-23 01:43:19 +05:30
notkshitij 7ec4f386b1 Fixed links for server.js and docker-compose.yaml (hopefully) 2025-07-23 01:34:09 +05:30
notkshitij 0c205270ee Backend and model uri are now passed in Dockerfile since the frontend is build within the docker container and served using serve. May add commands to clean up folders later. 2025-07-23 01:31:18 +05:30
notkshitij 8ee1f1183c Update dockerignore for models. 2025-07-23 01:23:40 +05:30
notkshitij ae7b868065 Added a guide for running crop disease detection part in Docker as well as standalone. 2025-07-23 01:15:35 +05:30
notkshitij fc9e3ac0f2 Changed origin to variable passed when running the container. Limited to only POST method. 2025-07-23 01:01:52 +05:30
notkshitij b67f7557ee Simplified dockerfile for models. Removed nonroot user and no longer creating venv in built image since it's a containerized env anyway. 2025-07-23 01:00:24 +05:30
notkshitij 66d7f76133 Updated .gitignore 2025-07-22 16:43:54 +05:30
notkshitij f7c27d5a98 Added dockerfile and dockerignore for local AI model. 2025-07-22 16:43:31 +05:30
notkshitij 3e93d8508b Added model container in docker compose 2025-07-22 16:43:13 +05:30
notkshitij 872a38c768 Changed uri for ai model in frontend. 2025-07-22 16:42:52 +05:30
notkshitij b9824307dd Added cors package and bumped up the version of multer. 2025-07-22 16:42:26 +05:30
notkshitij 45419247f7 Changed port and origin url+methods allowed in models/server.js 2025-07-22 16:42:04 +05:30
notkshitij ccd5debcef Changed backend to frontend in comments for Dockerfile for frontend. 2025-07-22 15:08:26 +05:30
notkshitij ad06012860 Moved test2.js to archive dir. 2025-07-22 14:51:54 +05:30
notkshitij 2a8b49241e Added public/ to gitignore. 2025-07-22 14:50:48 +05:30
notkshitij ed9059a812 No longer tracking public/ directory 2025-07-22 14:50:30 +05:30
notkshitij d52204c2f5 Commented local_model_path variable since it's no longer needed. 2025-07-22 14:48:23 +05:30
notkshitij 3a8ed215c4 Moved app-old.py to archive. 2025-07-22 14:47:35 +05:30
notkshitij f51ee5667f Added python venv files+dir and node_modules+package-lock to gitignore. 2025-07-22 14:47:19 +05:30
notkshitij 5792849c1e Removed node_modules/ and package-lock.json 2025-07-22 14:45:57 +05:30
notkshitij 4e0d54efa0 Added mapping for volume for mongodb. 2025-07-22 13:47:53 +05:30
notkshitij 301ff3679a Added docker compose and example env file. 2025-07-22 13:42:59 +05:30
notkshitij f5cea1062a Bumped version for frontent to 1.1.0 2025-07-22 13:31:36 +05:30
notkshitij 2c6abaf577 Added dockerfile for frontend. 2025-07-22 13:26:28 +05:30
notkshitij dde591049f Added dockerfile and dockerignore for backend. 2025-07-22 13:25:54 +05:30
notkshitij bdaafb66d9 Bumped version to 1.1.0 in package.json 2025-07-22 11:59:58 +05:30
notkshitij e3935c9760 Added confirm password text box and show/hide password toggles in both password fields. v1.1.0 2025-07-18 02:47:16 +05:30
notkshitij 4115193ef7 Added loader while checking whether password was leaked previously. 2025-07-18 02:40:15 +05:30
notkshitij 2afda4873b Added basic password strength indicator 2025-07-18 02:34:05 +05:30
notkshitij bc41904e06 Akcually, axios and sha1 are required in backend 🤓 2025-07-18 02:30:59 +05:30