First Run
After completing installation and environment setup, here’s how to explore Y3NKO.
Start the Development Server
npm run devThe application will be available at http://localhost:3000.
Explore the Application
Public Pages
| URL | Description |
|---|---|
/ | Homepage with featured listings |
/accommodations | Browse all accommodations |
/accommodations/[slug] | Individual listing detail |
/activities | Browse activities (view only) |
/destinations | Explore destinations |
/about | About Y3NKO |
Authentication
| URL | Description |
|---|---|
/login | Sign in page |
/register | Create account |
User Dashboard (Requires Auth)
| URL | Description |
|---|---|
/dashboard | User dashboard overview |
/dashboard/bookings | View your bookings |
/dashboard/favorites | Saved listings |
/dashboard/profile | Profile settings |
Host Dashboard (Requires Host Role)
| URL | Description |
|---|---|
/host | Host dashboard overview |
/host/listings | Manage your listings |
/host/listings/new | Create a new listing |
/host/bookings | View bookings for your listings |
Admin Dashboard (Requires Admin Role)
| URL | Description |
|---|---|
/admin | Admin dashboard overview |
/admin/listings | Manage all listings |
/admin/bookings | Manage all bookings |
/admin/users | Manage users |
Test Accounts
If you ran the seed script, these test accounts are available:
| Password | Role | |
|---|---|---|
user@test.com | password123 | User |
host@test.com | password123 | Host |
admin@test.com | password123 | Admin |
⚠️
Test accounts are only created in development. Never use these in production.
Database Explorer
Open Prisma Studio to browse your database:
npm run db:studioThis opens a visual database browser at http://localhost:5555.
Making Your First Booking
- Browse to
/accommodations - Click on a listing to view details
- Select dates and number of guests
- Click “Book Now”
- Sign in or create an account
- Enter guest details
- Proceed to payment (use Paystack test credentials)
Paystack Test Credentials
For testing payments in development:
Test Card:
- Number:
4084 0840 8408 4081 - CVV:
408 - Expiry: Any future date
- PIN:
0000 - OTP:
123456
Test Mobile Money (MTN):
- Phone:
0551234987 - OTP:
123456
Next Steps
- Read the Architecture Overview to understand the codebase
- Explore API Reference for endpoint documentation
- Check Guides for development workflows
Troubleshooting
Common Issues
Database connection failed:
- Verify
DATABASE_URLandDIRECT_URLare correct - Check if Supabase project is active
- Ensure IP is not blocked by Supabase
Authentication not working:
- Verify Supabase URL and keys
- Check redirect URLs match your
NEXT_PUBLIC_APP_URL
Payments failing:
- Ensure you’re using test keys in development
- Check Paystack dashboard for webhook logs
See Troubleshooting for more solutions.