MyBank

MyBank — Demo Banking App

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

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.

  1. Clone the repo
git clone https://github.com/alexDjs/MyBank.git
cd MyBank
  1. Install dependencies and start
npm install
npm start
  1. Open the app

How to use the live demo

Where data is stored

API endpoints (overview)

Authentication

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

Important notes

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.