You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove unused database switching functionality (#1)
- Removed DB_FILE environment variable from .env.sample
- Deleted legacy investec.db file
- Cleaned up commented DB_FILE reference in app.ts
* Add profile and KYC compliant fields to accounts (#2)
* Add profile and KYC compliant fields to accounts
- Added Profile model with profileId and profileName
- Updated Account model with kycCompliant, profileId, and profileName fields
- Created profile seeding script with default profile (ID: 10001234567890, Name: Joe Soap)
- Updated account seeding to include profile references and KYC compliance
- Added database journal files to gitignore
- Applied Prisma migration to update existing database
This ensures production-like account responses for strict validation compatibility.
* Add updated database, edit migration
* Add profiles and dashboard summary (#4)
* Add profile and KYC compliant fields to accounts
- Added Profile model with profileId and profileName
- Updated Account model with kycCompliant, profileId, and profileName fields
- Created profile seeding script with default profile (ID: 10001234567890, Name: Joe Soap)
- Updated account seeding to include profile references and KYC compliance
- Added database journal files to gitignore
- Applied Prisma migration to update existing database
This ensures production-like account responses for strict validation compatibility.
* Add updated database, edit migration
* Add real-time database summary dashboard (#3)
* Add real-time database summary dashboard with Socket.IO
- Added Database Summary section showing live counts for profiles, accounts, cards, and transactions
- Implemented Socket.IO real-time updates for all database operations (create/delete accounts, transactions, clear/restore)
- Added /database-summary API endpoint with real-time emission via emitDatabaseSummary()
- Improved server logging to use req.originalUrl for complete path details
- Excluded internal database-summary calls from server logs to reduce noise
- Added .idea folder to .gitignore
* Update dev.db with test accounts and transactions
* Improve test coverage and robustness (#5)
* Improve test coverage and robustness
- Update account.spec.ts to include new profile fields (kycCompliant, profileId, profileName)
- Improve card.spec.ts with better timestamp validation instead of exact matching
- Enhance environmentalvariables.spec.ts with comprehensive structure validation
- Add new profile.spec.ts with comprehensive profile functionality testing
- Remove unnecessary comments from test files for cleaner code
- Fix TypeScript warnings with proper parameter types
* Remove remaining comments from test files
- Clean up card.spec.ts by removing unnecessary comments
- Clean up environmentalvariables.spec.ts by removing unnecessary comments
- Keep code clean and concise without explanatory comments
* Fix ESLint configuration and resolve linting issues
- Fix eslint.config.js max-len rule configuration with proper severity and options
- Fix Array() constructor usage in cards.ts to use array literal notation
- Fix line length issues in card.spec.ts by breaking long strings into concatenated lines
- Replace 'any' type with proper typing in profile.spec.ts
- All 26 tests still passing
- No ESLint errors remaining
* Add hide/show functionality for sensitive environment variables (#6)
- Client Secret and API Key fields now default to hidden state for security
- Toggle buttons positioned to the right of input fields with eye icons
- Client Secret uses password/text input type switching
- API Key uses conditional rendering between textarea and masked dots display
- Updated dashboard screenshot to reflect new UI changes
* Add basic health endpoint for service monitoring (#7)
- Implements GET /health endpoint returning HTTP 200 with { status: 'ok' }
- Provides simple service availability check for monitoring tools
- Lightweight response with no database dependencies
* Fix README typo and add health endpoint documentation (#8)
- Fixed typo: "room of the domain" to "root of the domain"
- Added /health endpoint to Dashboard section for completeness
- Preserved original formatting and structure
* Add scrollable logs container with auto-scroll functionality (#9)
- Added fixed height (300px) scrollable container for server logs
- Implemented auto-scroll to bottom when new log entries arrive
- Added custom scrollbar styling for better visibility
- Removed overflow-hidden from parent container to show scrollbar
- Enhanced log item padding and styling for better readability
* Add beneficiary deletion endpoint and fix TypeScript issues (#10)
* Update prisma database with latest schema changes (#11)
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ npm run dev
45
45
46
46
This will start the simulator on http://localhost:3000
47
47
48
-
Accessing the room of the domain will show the dashboard view of the server. The dashboard allows you to set the environment variables for the server and view the logs of the server.
48
+
Accessing the root of the domain will show the dashboard view of the server. The dashboard allows you to set the environment variables for the server and view the logs of the server.
49
49
50
50
There are helpful links to the Investec docs, Community wiki, GitHub repo and the Postman collection.
51
51
@@ -54,6 +54,8 @@ There are helpful links to the Investec docs, Community wiki, GitHub repo and th
54
54
### Dashboard
55
55
-**GET /**
56
56
- Dashboard view of the server
57
+
-**GET /health**
58
+
- Health check endpoint returning service status
57
59
### Auth
58
60
-**POST /identity/v2/oauth2/token**
59
61
- Get an access token (only required if auth is turned on)
@@ -105,6 +107,10 @@ There are helpful links to the Investec docs, Community wiki, GitHub repo and th
code: '// This function runs before a transaction.\nconst beforeTransaction = async (authorization) => {\n console.log(authorization);\n};\n// This function runs after a transaction was successful.\nconst afterTransaction = async (transaction) => {\n console.log(transaction);\n};\n// This function runs after a transaction was declined.\nconst afterDecline = async (transaction) => {\n console.log(transaction);\n};',
27
-
createdAt: '2024-08-01T13:05:33.685Z',
28
-
updatedAt: '2024-08-01T13:05:33.685Z',
29
-
publishedAt: '2024-08-01T13:05:33.685Z',
27
+
code: '// This function runs before a transaction.\n'+
code: '// This function runs before a transaction.\nconst beforeTransaction = async (authorization) => {\n console.log(authorization);\n};\n// This function runs after a transaction was successful.\nconst afterTransaction = async (transaction) => {\n console.log(transaction);\n};\n// This function runs after a transaction was declined.\nconst afterDecline = async (transaction) => {\n console.log(transaction);\n};',
41
-
createdAt: '2024-08-01T13:05:33.685Z',
42
-
updatedAt: '2024-08-01T13:05:33.685Z',
43
-
publishedAt: '2024-08-01T13:05:33.685Z',
60
+
code: '// This function runs before a transaction.\n'+
0 commit comments