backened development for react native app
This project is a Quarkus-based Java application that simulates a data-fetching service. It operates by handling queries provided in text format, fetching relevant data without requiring variable creation. The project utilizes RESTful endpoints to handle input and provide structured outputs.
- Fetch data dynamically using query strings.
- Supports POST requests for sending data.
- Simplified handling of file-based parameters.
- Example endpoint:
http://localhost:8002/irs/lov/ambulance_services
{
"fileName": "mobile",
"params": "03003"
}
- Endpoint:
{{ _.irs_ip }}:{{ _.irs_port }}/irs/user
- Query Example:
SELECT * FROM vehicle_involved; SELECT * FROM users WHERE mobile_number='%s';
- Quarkus
- PostgreSQL
- Quarkus RESTEasy
- Quarkus RESTEasy Jackson
- Quarkus Agroal
- Quarkus JDBC PostgreSQL
- Quarkus Hibernate Validator
- Quarkus SmallRye OpenAPI
- Quarkus SmallRye Metrics
- Quarkus SmallRye Health
- Quarkus Narayana JTA
- BCrypt for encryption (via
jbcrypt
) - Kubernetes support
- Jib for container image creation
- Java 11 or later
- Maven
- PostgreSQL database
- Clone the repository:
git clone <repository-url> cd query_simulator
- Build the project:
mvn clean install
- Run the Quarkus application:
mvn quarkus:dev
Set the following environment variables in the application:
_.irs_ip
- IP address for the server._.irs_port
- Port for the server.
- URL:
http://localhost:8002/irs/lov/{fileName}
- Method: GET
- Description: Fetches data based on the provided file name.
- URL:
{{ _.irs_ip }}:{{ _.irs_port }}/irs/user
- Method: POST
- Payload Example:
{ "fileName": "mobile", "params": "03003" }
Quarkus
Simulator
PostgreSQL
Java
REST API
Data Fetching
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name
- Commit changes:
git commit -m "Description of changes"
- Push to the branch:
git push origin feature-name
- Create a pull request.
This project is licensed under the MIT License.