Coder Social home page Coder Social logo

fantommir / estates-java-spring-react-js-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timrooter/estates-java-spring-react-js-project

0.0 0.0 0.0 1.87 MB

Project Spring Boot + Spring Security + JWT + Client part React JS

Shell 7.58% JavaScript 48.28% Java 40.18% CSS 2.19% HTML 1.78%

estates-java-spring-react-js-project's Introduction

Java Spring Boot (Backend) + React JS (Frontend)

Typing SVG

Description: EstateAPI is a web application built using Java 17, PostgreSQL, Spring Security with JWT authentication, and a frontend developed in React JS. The application serves as a platform for managing real estate properties and user accounts.

Features:

1) User Authentication and Authorization: Utilizes Spring Security with JWT authentication to secure endpoints and manage user authentication and authorization.

2) User Management: Allows users to sign up, log in, and manage their accounts.

3) Real Estate Management: Provides functionalities to create, retrieve, update, and delete real estate properties.

4) RESTful API: Implements a RESTful API architecture for communication between the frontend and backend components. 5) Data Persistence: Utilizes PostgreSQL database to store user and real estate data securely. 6) Frontend Interface: The frontend interface is developed using React JS, providing a user-friendly interface for interacting with the application.

Technologies Used: ·Java 17

·Spring Security with JWT

·PostgreSQL

·React JS

Endpoints:

Authentication:

POST /auth/authenticate: Authenticates users and generates JWT token.

POST /auth/signup: Allows users to sign up and creates a new account.

User Management:

GET /api/users/me: Retrieves the current user's information.

GET /api/users: Retrieves a list of all users.

GET /api/users/{username}: Retrieves user information by username.

DELETE /api/users/{username}: Deletes a user account.

Real Estate Management:

GET /api/estates: Retrieves a list of all real estate properties.

GET /api/estates?text={searchText}: Retrieves real estate properties containing the specified text.

POST /api/estates: Creates a new real estate property.

DELETE /api/estates/{id}: Deletes a real estate property by ID.

Public Endpoints:

GET /public/numberOfUsers: Retrieves the total number of users.

GET /public/numberOfEstates: Retrieves the total number of real estate properties.

Setup Instructions:

Clone the repository containing the backend Java project. Set up a PostgreSQL database and configure the database connection in the application properties. Build and run the Java application using Maven or your preferred IDE. Clone the repository containing the React JS frontend. Install dependencies and start the frontend development server using npm. Access the application via the provided URL and begin using the features.

To install necessary libraries (node_modules) for React JS frontend npm install or npm i react-scripts and then in terminal of client part npm run start

  1. To look Admin part: log: admin pas: admin

  2. To look User part: log: user pas: user or sign up your own account

Screenshots of the project:

image image image image image image image image

estates-java-spring-react-js-project's People

Contributors

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