Commit Graph

226 Commits

Author SHA1 Message Date
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
notkshitij 4fb54705ca Removed axios and sha1 packages from backend. 2025-07-18 02:13:31 +05:30
notkshitij 12ce8b1ec3 Added axios and sha1 packages. 2025-07-18 02:13:12 +05:30
notkshitij 9c3feca6a7 feat(login): improve error handling and show rate limit message
- Display meaningful error messages on login failure, including rate limiting (429)
- Added fallback for unexpected JSON responses from the server
- Integrated `Message` component for error display
- Cleaned up form value clearing and error state management
2025-07-18 02:12:46 +05:30
notkshitij aaf88fda56 feat(signup): add password strength and breach check using HIBP API
- Implemented frontend password validation for minimum strength:
  - Requires 8+ characters with uppercase, lowercase, digit, and special character.
- Integrated haveibeenpwned (HIBP) k-anonymity API to detect breached passwords.
- Display appropriate error messages for weak or pwned passwords.
- Updated Message component to support "error" and "default" types with styling.
- Cleaned up SignupPage form UI and removed unused refs (e.g., roleElement).
- Created passwordUtils.js to isolate SHA-1 hashing and API call logic.
2025-07-18 02:06:43 +05:30
notkshitij 23a271fbce Removed package-lock.json and updated .gitignore. 2025-07-18 01:26:13 +05:30
notkshitij f3e52cda73 Added new packages and updated some existing ones. 2025-07-18 01:25:27 +05:30
notkshitij 04e69202b6 Added password policy and checking if password appeared in a breach w/ haveibeenpwed api. 2025-07-18 01:22:01 +05:30
notkshitij 001727ab85 Added helmet secure headers and HTTPS redirection. 2025-07-18 01:21:07 +05:30
notkshitij 351f57229c Apply rate limiter logic. 2025-07-18 01:18:10 +05:30
notkshitij 25cfa659c7 Added rate limiting logic in middleware. 2025-07-18 01:17:53 +05:30