Back to Projects

Project Case Study / 2026

Srilanka Destination Explorer.

Full-Stack Destination Discovery Application

A full-stack travel discovery platform featuring Srilankan destinations, live weather information, and secure administrative management.

Next.jsReactTypeScriptTailwind CSSNestJSMongoDBMongooseJWTOpen-MeteoRailway
Srilanka Destination Explorer homepage
01 / Homepage and destination exploration
Destination listing with Colombo, Kandy and Galle
02 / Destination browsing
Kandy destination detail page
03 / Destination details and location information
Current weather information for Kandy
04 / Live weather integration using Open-Meteo
Protected administration dashboard
05 / Destination management dashboard
Add destination administration form
06 / Create a new destination
Destination coordinates and image configuration
07 / Destination location and image configuration

Project Overview

Srilanka Destination Explorer is a full-stack web application that allows visitors to discover travel destinations across Srilanka and view current weather information for each location.

The application combines a responsive Next.js frontend with a NestJS REST API and MongoDB database. It also includes a protected administration dashboard for managing destination information.

This project provided practical experience with modular backend architecture, document databases, third-party API integration, authentication, and deploying interconnected services.

Key Features

01

Destination Discovery

Browse Srilankan destinations through a responsive public interface with destination cards and individual detail pages.

02

Live Weather Information

Display current temperature, humidity, wind speed, and weather conditions using the Open-Meteo Weather API.

03

Administrator Authentication

Secure administrator login and logout using JWT authentication, bcrypt password hashing, and HTTP-only cookies.

04

Destination Management

Protected administration dashboard supporting destination creation, viewing, editing, and deletion.

05

REST API and Database

NestJS REST endpoints with validation, error handling, and MongoDB persistence through Mongoose.

06

Production Deployment

Frontend, backend, and database services deployed separately using Railway.

Technical Architecture

The main technologies and responsibilities across the application layers.

Frontend

Next.js, React, TypeScript, and Tailwind CSS for the public website and administration interface.

API Proxy

Next.js same-origin API proxy forwarding frontend requests to the separately deployed NestJS backend.

Backend

NestJS application organized into controllers, services, and modules with RESTful API endpoints.

Database

MongoDB with Mongoose for storing and managing destination information.

Authentication

JWT authentication with bcrypt password hashing, HTTP-only cookies, and protected administrator endpoints.

Weather Integration

Backend integration with Open-Meteo for retrieving current weather conditions using destination coordinates.

Deployment

Separate frontend, backend, and MongoDB services hosted through Railway.

Engineering Challenges

Production Authentication Across Services

Authentication worked locally but encountered cross-origin cookie issues when the frontend and backend were deployed as separate services. Implementing a Next.js same-origin API proxy allowed browser requests to use the frontend origin while forwarding API calls to NestJS, resolving the production authentication issue.

Third-Party Weather Integration

Integrated Open-Meteo through the NestJS backend using destination coordinates, keeping external API integration separate from frontend presentation logic.

Modular Backend and Data Persistence

Structured RESTful endpoints using NestJS controllers, services, and modules while implementing MongoDB persistence, input validation, and error handling.

Full-Stack Deployment

Configured and deployed interconnected frontend, backend, and database services on Railway, including environment configuration and production testing.