Traveltopia is a full-stack web application designed with a client-server architecture to provide a seamless travel discovery experience. Built as part of the CSEN503: Introduction to Communication Networks course at the German University in Cairo (Winter 2025), the platform allows users to explore curated travel categories, manage a personalized "Want-to-Go" list, and perform real-time searches.
-
Frontend: Dynamic EJS (Embedded JavaScript) templating with Bootstrap for responsive UI.
-
Backend: Node.js with Express.js handling modular routing for authentication, search, and destination management.
-
Database: MongoDB utilizing a unified single-collection design (
myCollection) to store both user credentials and destination data. -
Authentication: Session-based security using
express-sessionto protect routes and manage user states.
-
Role-Based Access Control: Restricted access to home, search, and destination pages unless a valid session exists.
-
Unified Data Model: Optimized registration and login logic that distinguishes between user documents and destination data within the same collection.
-
Validation: Server-side checks for existing usernames and mandatory input fields.
-
Categorized Exploration: Specialized views for Hiking, Cities, Islands, Beaches, and Mountains, each dynamically pulling destination lists from the database.
-
Interactive Content: Destination pages feature unique descriptions, category labeling, and embedded video streaming (
.mp4) for each location. -
Navigation Tools: Integrated Navbar and "Back-Button" partials for fluid transitions between categories and search results.
-
Dual-Layer Search: * API Route: A JSON-returning API (
/api/search) that powers real-time dropdown results using case-insensitive regex. -
Full Search Page: A dedicated results view that filters the database by name, actual name, or country while ensuring user documents are excluded from results.
-
Persistent Lists: Users can add destinations to a personal list stored within their user document using the
$addToSetoperator to prevent duplicates. -
Asynchronous Feedback: Utilizes the
fetchAPI to provide instant UI feedback (e.g., "Added to your list") without requiring a page reload. -
Management: A dedicated view allows users to see their saved destinations and remove them via a
$pullupdate.
- Node.js & NPM
- MongoDB Community Server (Local instance on port
27017) - Database Name:
myDB - Collection Name:
myCollection
- Install dependencies:
npm install
- Run the Server:
node app.js
- Access: Open
http://localhost:3000/login.
- Yassin Mohamed Ahmed – LinkedIn
- Mario Gadallah – LinkedIn
- Salma Omar – LinkedIn
- Mohamed Zaytoun – LinkedIn
- Youssef Moussa – LinkedIn
This project was created for educational and academic purposes.
© 2025 Garabt-te-Restart-el-Router – All rights reserved.
This project was developed as part of the Introduction To Communication Networks course requirements at the German University in Cairo, Winter 2025.