Code Monkey home page Code Monkey logo

hotel_management's Introduction

Hotel Management

Requirements

  • IntelliJIDEA
  • ServerPort: 8080 (use: localhost:8080)
  • Java version: 17
  • Everything is present in the pom.xml (no need to download any library)
  • AWS(EC2)

Steps to run the Project

  • Download the source code and import in intellijIDEA.
  • Go to localhost:8080/
  • Put specific end_points besides the port accordingly to run the project to access and modify the data or *Click on the link which is integrated with swagger and use it
http://3.109.21.88:8080/swagger-ui/index.html#/

Dependencies

Validation

  • Bean Validation with Hibernate validator.

Spring Web

  • Build web, including RESTful, applications using Spring MVC. Uses Apache Tomcat as the default embedded container.

Spring Boot DevTools

  • Provides fast application restarts, LiveReload, and configurations for enhanced development experience.

Spring Data JPA

  • Persist data in SQL stores with Java Persistence API using Spring Data and Hibernate.

Lombok

  • Java annotation library which helps to reduce boilerplate code.

JSON

  • JSON is a lightweight, language-independent, data interchange format. See http://www.JSON.org/ The files in this package implement JSON encoders/decoders in Java. It also includes the capability to convert between JSON and XML, HTTP headers, Cookies, and CDL. This is a reference implementation.

MySQL

  • MySQL JDBC driver.

Swagger

  • It provide the UserInterface for all our API's.

Project Structure(MVC Structure)

Model

  • User Model
  • Order Model
  • FoodItems Model
  • Admin Model

Controller

  • UserController
  • OrderController
  • FoodItemController
  • AdminController

DAO

  • UserRepository
  • OrderRepository
  • FoodItemRepository
  • AdminRepository

Service

  • UserService
  • OrderService
  • FoodItemService *AdminService

EndPoints

Admin

  • creat-admin
  • getadmin
  • create-food-item
  • getallfood
  • deletefoodbyid
  • update-food-details
  • getOrderbyorderid

FoodItem

  • create-food_item
  • getAllfoodItems
  • getfoodbyId
  • delete-food-by-id
  • update-food-item/{foodid}

Order

  • create-order
  • get-order-by-orderid

User

  • create-user
  • getallUsers
  • login

Working

  • Project mainly focuses on Users, Orders and foodItems.
  • Crud operations on User like add user,fetch user,login user.
  • Crud operation on Orders like add order and fetch order.
  • Crud operation on Admin like add admin, fetch admin , CRUD operation on food items by using Admin.
  • We have provide the validations on every entry data from the end user.
  • All the can be seen in the mySql workbench
  • we have deployed our project by using Static Url of the AWS Server which helps in running the project in background.

hotel_management's People

Contributors

mgopalkrishnal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.