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
-
To look Admin part: log: admin pas: admin
-
To look User part: log: user pas: user or sign up your own account
Screenshots of the project: