About the project
Edoya needed its own booking channel for guests in English and Japanese, and a back office its staff could run without a developer. We built both on one Next.js codebase with a PostgreSQL database.
Key features
- Two languages throughout: every page, room description, guide and review is translated, with locale routing handled in middleware.
- Multi-room booking requests: guests can ask for several rooms at once. The server calculates the price, so the figure on the confirmation matches what staff see.
- Date-specific pricing: room prices can vary by date and are shown on the hotel page.
- Time zones handled deliberately: check-in and check-out dates are tied to the hotel’s time zone, so guests in other zones do not see dates shift by a day.
- Admin panel: staff manage hotels, room types, images, amenities, blocked dates, bookings and content, with sign-in through NextAuth.
- Email notifications: managers are emailed about new bookings and guests when a booking is confirmed, through Resend or SMTP. Contact requests notify staff and show both the guest’s time and the hotel’s time.
- Travel content: blog posts, travel guides and location reviews with galleries.
Where AI is used
The code does not use AI. This is a conventional booking and content system.
Technical aspects
- Framework: Next.js App Router, React and TypeScript
- Data: PostgreSQL with Prisma
- Auth: NextAuth with role-based access for admins and managers
- Quality: automated tests with Vitest; Docker setups for development and production

