Prerequisites
Before installing the frontend application, ensure you have the following:- Node.js: Version 20 or higher
- Package Manager: pnpm, npm, or yarn
- Backend Server: Bun Hono Backend running and accessible
- Backend Credentials: Username and password matching your backend configuration
Install Dependencies
Environment Configuration
Create a.env file in the root directory of your project to configure the connection to your backend:
.env
The
USERNAME and PASSWORD must match the credentials configured in your backend server. These are used for Basic Authentication when making API requests.Environment Variables Explained
| Variable | Description | Example |
|---|---|---|
BACKEND_URL | URL where your Bun Hono backend is running | http://localhost:3000 |
USERNAME | Backend authentication username | Same as backend config |
PASSWORD | Backend authentication password | Same as backend config |
Port Configuration
By default:- Backend: Runs on port
3000 - Frontend: Runs on port
3001
BACKEND_URL in your .env file to match.