The VAT Validation Microservice is a web application consisting of two parts: a backend service and a frontend validation UI. The microservice allows users to validate VAT-IDs (Value Added Tax Identification Numbers) against the official EU VAT Information Exchange System (VIES) database.
- Validate VAT-IDs against the VIES database
- Display validation results including company information
- User-friendly web interface for easy interaction
The application follows a client-server architecture, with the following components:
- Backend Service: A RESTful API service built using Java and Spring Boot. It interacts with the VIES database to perform VAT-ID validations and provides endpoints for the frontend UI.
- Frontend Validation UI: A React-based user interface that allows users to enter VAT-IDs, initiate validation requests, and display the validation results.
- Java Development Kit (JDK) 8 or higher
- Node.js and npm (Node Package Manager) installed on your system
-
Clone the repository:
git clone https://github.com/your-username/vat-validation-microservice.git
-
Navigate to the
backend
directory:cd vat-validation-microservice/backend
-
Build the project:
./mvn install
- Configure the backend service by modifying the
application.properties
file located insrc/main/resources
. Set the necessary properties, such as the server port and VIES API endpoints.
-
Start the backend service:
-
The service will be accessible at
http://localhost:8080
. You can test the endpoints using tools like cURL or Postman.
-
Navigate to the
frontend
directory:cd vat-validation-microservice/frontend
-
Install the dependencies:
npm install
- Configure the frontend UI by modifying the
.env
file located in the project's root directory. Update the backend API URL if necessary.
-
Start the frontend development server:
npm start
-
Open your browser and visit
http://localhost:3000
to access the VAT validation UI.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License.
This application utilizes the official VIES API for VAT-ID validation.
This microservice and its components rely on the availability and accuracy of the VIES database. It is provided as-is without any warranty. Use it at your own risk.
Feel free to customize and enhance the README file based on your specific requirements and project details.