A modern, responsive frontend for a Banking System built with React, TypeScript, and Tailwind CSS.
Since the backend hosted on Render does not allow Cross-Origin (CORS) requests from other domains (including your frontend), you must configure a Rewrite Rule to proxy requests through your frontend's server.
This project includes a render.yaml file that automatically configures the environment and rewrite rules.
- Push your code to GitHub.
- Log in to Render and go to "Blueprints".
- Click "New Blueprint Instance".
- Connect your repository (
WideSu/banking_system_frontend). - Click "Apply". Render will create the static site with all correct configurations.
If you prefer to set it up manually as a "Static Site":
- Create New Static Site on Render connected to your repo.
- Build Command:
npm install && npm run build - Publish Directory:
dist - Environment Variables:
VITE_API_URL=/api
- Redirects/Rewrites (Crucial!):
- Source:
/api/* - Destination:
https://banking-system-backend-klt3.onrender.com/* - Action:
Rewrite - (Add another rule for SPA routing):
- Source:
/* - Destination:
/index.html - Action:
Rewrite
- Source:
- User Authentication: Simple login mechanism using account names.
- Account Dashboard: Real-time view of account balance and status.
- Transactions: Deposit, Withdrawal, and Transfer capabilities.
- Responsive Design: Optimized for all devices.
- Framework: React (v18) + Vite
- Styling: Tailwind CSS
- State Management: Zustand
- HTTP Client: Axios
-
Clone & Install:
git clone https://github.com/WideSu/banking_system_frontend.git cd banking_system_frontend npm install -
Start Dev Server:
npm run dev
The app will start at
http://localhost:5173and proxy API requests to the remote backend automatically.
MIT License.