Giter Club home page Giter Club logo

niteshpalcode / airbnb_database Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 110 KB

This project aims to develop a Spring Boot-based web application with JWT security for creating an Airbnb-like database, allowing users to list and book properties securely. It utilizes Spring Data JPA for database operations and MySQL as the underlying database technology.

Java 100.00%
datajpa hibernate-jpa java-8 jwt-auth jwt-authentication jwt-token lambda-functions lombok mysql postman

airbnb_database's Introduction

Airbnb_Database

The project aims to create an Airbnb-like database using Spring Boot framework and JWT security. It involves developing a web application that allows users to list and book properties for short-term rentals. The project will implement user authentication and authorization using JSON Web Tokens (JWT) for secure access to the application. Using Spring Boot, the application will provide a RESTful API to handle CRUD operations for entities such as users, properties, and bookings. The database will be set up using MySQL, with the necessary configuration details specified in the application.properties file.

Entities such as User, Listing, and Booking will be defined as Java classes with appropriate JPA annotations to establish relationships and map them to the corresponding database tables. The project will leverage Spring Data JPA for database operations, making it easier to interact with the database through repositories and queries.

JWT security will be implemented to ensure that only authenticated and authorized users can access certain resources. Upon successful authentication, a JWT token will be generated and returned to the client, which will be used to authorize subsequent API requests. The token will be validated on the server-side to ensure the authenticity and permissions of the user.

Overall, this project combines the power of Spring Boot, MySQL, and JWT security to create a secure and efficient Airbnb-like database that allows users to manage and book properties seamlessly.

Technical Stacks

  • Spring Boot
  • Spring Framework
  • Spring Data JPA
  • MySQL
  • Hibernate
  • Java
  • Swagger UI
  • Postman
  • Spring Security

Modules

  • Authentication Module
  • Admin Module
  • Users Module
  • Listing Module
  • Location Module
  • Amenities Module
  • Booking Module
  • Review Module

ER Diagram

Installation & Run

  • Before running the API server, you have to update the database configuration inside the application.properties file
  • Update the port number, username and password as per your local database configuration
    server.port=8888

    spring.datasource.url=jdbc:mysql://localhost:3306/airbnb;
    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
    spring.datasource.username=*****
    spring.datasource.password=******
 

API Root Endpoint

https://localhost:8888/index.html

http://localhost:8888/swagger-ui.html

airbnb_database's People

Contributors

niteshpalcode avatar

Stargazers

 avatar  avatar  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.