0% found this document useful (0 votes)
31 views13 pages

Travel Website Documentation

travel

Uploaded by

navaneetsekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views13 pages

Travel Website Documentation

travel

Uploaded by

navaneetsekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Travel Website Documentation

A Full-Stack Web Application

Author: [Your Name]

Date: [Insert Date]


Table of Contents
1. 1. Introduction
2. 2. Project Overview
3. 3. Technologies Used
4. 4. Website Features
5. 5. Code Overview
6. 6. Database Structure
7. 7. Screenshots of the Website
8. 8. Challenges and Learnings
9. 9. Future Enhancements
10. 10. Conclusion
11. 11. References
1. Introduction
The Travel Website is a full-stack web application built to streamline travel booking and
management. It provides a basic login functionality for users, ensuring secure access to the
system. The project is a step toward modernizing travel agency operations.
2. Project Overview
**Frontend**: Developed using HTML, CSS, and JavaScript.

**Backend**: Powered by Spring Boot with RESTful APIs.

**Database**: PostgreSQL/MySQL for data persistence.

The application currently supports user login and automatic user creation if the user does
not already exist in the database.
3. Technologies Used
 HTML, CSS, and JavaScript for the frontend.
 Spring Boot (Java) for the backend.
 MySQL/PostgreSQL for the database.
 RESTful APIs for communication between frontend and backend.
 VS Code as the IDE for development.
4. Website Features

Frontend:
- Responsive design with a clean user interface for login.

Backend:
- Login authentication system with user creation.

Database:
- Simple schema with fields for `sno`, `email`, and `password`.
5. Code Overview
### Login Authentication Logic

The following code snippet demonstrates how the application handles user login and
registration:

@PostMapping("/login")
public ResponseEntity<String> loginUser(@RequestBody User user) {
Optional<User> existingUser = userRepository.findByEmail(user.getEmail());
if (existingUser.isPresent()) {
return ResponseEntity.ok("User logged in successfully.");
} else {
userRepository.save(user);
return ResponseEntity.ok("New user created and logged in.");
}
}
6. Database Structure
The database schema consists of the following columns:

 sno (Primary Key, Integer): Unique identifier for each user.


 email (String): User's email address.
 password (String): User's password.
7. Screenshots of the Website
Screenshots of the application's login page, error messages, and database entries can be
added here.
8. Challenges and Learnings
During the development of this project, I encountered several challenges, including:

 Resolving the Whitelabel Error Page in Spring Boot.


 Establishing a connection between the backend and the PostgreSQL/MySQL database.
 Debugging authentication logic for the login feature.

Key learnings include debugging techniques and database management.


9. Future Enhancements
 Adding a signup feature for new users.
 Enhancing the UI/UX for better user experience.
 Implementing role-based authentication (e.g., admin and user roles).
 Integrating APIs for real-time travel booking.
10. Conclusion
This project has been an insightful journey into full-stack development. It demonstrates the
fundamental functionality of a travel management system and lays the foundation for future
enhancements.
11. References
1. Spring Boot Documentation: https://spring.io/projects/spring-boot
2. PostgreSQL Documentation: https://www.postgresql.org/docs/
3. Frontend Tutorials: [Insert relevant links]

You might also like