Skip to content

Commit aae77d1

Browse files
MStarRoboticsclaude
andcommitted
feat: implement complete auth/registration system (backend + frontend)
Backend: Add Express 5 API layer with Auth, User, Helper, Medical, and Location modules. Each module has service (business logic with field whitelisting), controller (HTTP layer), routes (with express-validator), and utilities. Includes shared ApiError/ApiResponse/asyncHandler/validate middleware. Frontend: Add Redux Toolkit store with auth slice (17 reducers), API client with Axios interceptors, and 5 multi-step signup screens (StepOne role selector, StepTwoUser emergency contacts, StepTwoHelper skills/availability, StepThreeMedical optional health info, StepLocation GPS/manual address). Includes FormInput, PrimaryButton, StepIndicator shared components. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4b28d6c commit aae77d1

46 files changed

Lines changed: 17549 additions & 53 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LifeLine-Backend/package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
{
22
"name": "LifeLine-Backend",
33
"version": "1.0.0",
4-
"description": "",
5-
"main": "index.js",
4+
"description": "LifeLine Emergency Response Backend API",
5+
"main": "src/server.mjs",
6+
"type": "module",
67
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
8+
"start": "node src/server.mjs",
9+
"dev": "node --watch src/server.mjs",
10+
"test": "node tests/api.test.mjs",
11+
"test:watch": "node --watch tests/api.test.mjs"
812
},
913
"keywords": [],
1014
"author": "",
1115
"license": "ISC",
1216
"packageManager": "pnpm@10.28.2",
1317
"dependencies": {
18+
"cors": "^2.8.6",
19+
"dotenv": "^17.2.4",
20+
"express": "^5.2.1",
21+
"express-validator": "^7.3.1",
1422
"mongoose": "^9.1.6"
1523
}
1624
}

0 commit comments

Comments
 (0)