Start the Application
This guide will take you from a fresh installation to a fully running application.Verify backend is running
Before starting the frontend, ensure your Bun Hono Backend is running and accessible.Test it by visiting:
If you can’t access the backend, the frontend will display a “Backend Cannot Be Accessed” error message.
Configure environment variables
Create a The application uses these credentials for Basic Authentication:
.env file in the root directory with your backend configuration:.env
Start the development server
Run the development server with your preferred package manager:The application will start with Turbopack (Next.js’s fast bundler) and be available at:
What You Should See
When the application loads successfully, you’ll see:Main Dashboard
The home page (src/app/page.tsx) displays:
- Time Left Badge: Shows hours remaining until messages are sent
- Messages Section: Displays all scheduled messages with:
- Message content preview
- Recipient name and phone
- Days until message sends
- People Section: Lists all contacts
- Add Message Button: Create new scheduled messages
Application Features
The interface provides:Message Management
View, create, update, and delete scheduled messages. Each message shows content preview, recipient, and send timing.
People Management
Manage your contact list. Add people with names and phone numbers to send messages to.
Schedule Timer
Monitor time remaining before scheduled messages are sent. Adjust the schedule as needed.
Responsive Design
Mobile-friendly interface using Radix UI components and Tailwind CSS, adapting to any screen size.
Verify the Connection
The application fetches data from your backend on page load:Troubleshooting Connection Issues
If you see “Backend Cannot Be Accessed”:
- Verify backend is running on the correct port
- Check
.envfile has correctBACKEND_URL - Ensure
USERNAMEandPASSWORDmatch backend credentials - Test backend directly:
curl http://localhost:3000/time-left
Development Commands
Common commands frompackage.json:
Next Steps
Now that your application is running:- Explore the Components section to understand the UI structure
- Check the API Integration guide to learn how the frontend communicates with the backend
- Review Configuration options for customizing your deployment