This repository contains a lightweight full‑stack demo application (Node/Express backend + static frontend) intended for API testing and UI demonstration on desktop and mobile devices.
Live demo (no download required)
You can test the application directly using the live URL above — there is no need to clone or run the project locally unless you want to develop or run it offline. Simply send requests to the deployed URL from Postman, curl or your browser.
Repository
Purpose
data.json) and is not suitable for production.Quick start (local, optional) Prerequisites:
If you prefer to run the app locally for development, follow these steps. Otherwise, use the live demo link above.
git clone https://github.com/alexDjs/MyBank.git
cd MyBank
npm install
npm start
How to use the live demo
Where data is stored
data.json at the project root. This file contains users, account, and expenses objects and is modified when you POST/PUT/DELETE via the API.API endpoints (overview)
Authentication
POST /login you will receive a JSON response with a token field. Use this token in an Authorization header for protected endpoints:Authorization: Bearer <token>
Postman / CLI examples
Register (JSON body):
POST https://mybank-8s6n.onrender.com/register
Content-Type: application/json
{
"email": "test@example.com",
"password": "secret123",
"name": "Test User"
}
Login (get token):
POST https://mybank-8s6n.onrender.com/login
Content-Type: application/json
{
"email": "test@example.com",
"password": "secret123"
}
PowerShell example (login):
$body = @{ email='test@example.com'; password='secret123' } | ConvertTo-Json
$response = Invoke-RestMethod -Uri 'https://mybank-8s6n.onrender.com/login' -Method Post -Body $body -ContentType 'application/json'
$token = $response.token
Write-Host "Token: $token"
curl example (create expense):
curl -X POST "https://mybank-8s6n.onrender.com/expenses" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"type":"Coffee","amount":-4.5,"date":"2025-08-26","time":"14:30","location":"Cafe"}'
Postman notes
https://mybank-8s6n.onrender.com as an environment variable.Authorization header with value Bearer (store the token in an environment variable after login).Important notes
data.json is not a production datastore. For production use migrate to a proper database and secure environment variables.Contact
This README gives a concise guide to run, test and demo the application. If you want, I can also add a ready-made Postman Collection JSON to the repo and a short README-deploy.md with Render deployment notes.