Skip to content

Commit 11f24ae

Browse files
committed
Add API backend and optimize whitelist fetching
- Added Node.js/Express API server with JWT authentication - Implemented whitelist CRUD endpoints (GET, POST, PUT, DELETE) - Added MongoDB integration with Mongoose - Updated .gitignore for Node.js dependencies - Optimized Android app whitelist fetching: * Two-level caching (HTTP + in-memory) * Exponential backoff retry logic * Automatic token refresh on 401 errors * Improved error handling and offline support - Added API documentation and Postman collection - Updated server IP to 192.168.2.244:5001
1 parent 7269bad commit 11f24ae

File tree

10 files changed

+1294
-0
lines changed

10 files changed

+1294
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,12 @@
1313
.externalNativeBuild
1414
.cxx
1515
local.properties
16+
17+
# Node.js (for api folder)
18+
node_modules/
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
package-lock.json
23+
.env
24+
.env.local

0 commit comments

Comments
 (0)