Skip to content

Commit 17e99f5

Browse files
committed
[bugfix] minor fixes suggested by Adam
1 parent 6c29595 commit 17e99f5

File tree

1 file changed

+65
-17
lines changed

1 file changed

+65
-17
lines changed

README.md

Lines changed: 65 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Broadband label file Validator Service
2-
This project provides a solution for validating Broadband Label files against defined Schemas. Developed by [Evolved Binary](https://www.evolvedbinary.com/) for use with the [FCC Broadband Labels](https://www.fcc.gov/broadbandlabels) initiative, the system consists of a HTTP REST API and a user-friendly Web Application.
1+
# Broadband Label file Validator Service
2+
This project provides a solution for validating Broadband Label files against defined Schemas. Developed for [Comcast](https://www.comcast.com) by [Evolved Binary](https://www.evolvedbinary.com) for use with the [FCC Broadband Labels](https://www.fcc.gov/broadbandlabels) initiative, the system consists of a HTTP REST API and a user-friendly Web Application.
33

4-
The core validation logic is built upon the Open Source [CSV Validator](https://github.com/digital-preservation/csv-validator) library, originally developed for The National Archives.
4+
The core validation logic is built upon the Open Source [CSV Validator](https://github.com/digital-preservation/csv-validator) library, originally developed for [The National Archives](https://www.nationalarchives.gov.uk/).
55

66
## Features
77

88
* **HTTP REST API**: A robust API that exposes validation services to the internet.
99
* **Web Application**: A simple HTML5 interface allowing users to upload files or provide URLs for validation.
10-
* **Multiple Input Methods**: Support for validating broadband label files via direct file upload or external URL retrieval.
10+
* **Multiple Input Methods**: Support for validating Broadband Label files via direct file upload or external URL retrieval.
1111
* **Schema Management**: dynamically lists and utilizes validation schemas stored in the configured directory.
1212

1313
## Endpoints
@@ -16,40 +16,90 @@ Check the API documentation for more information https://app.swaggerhub.com/apis
1616
## Built With
1717

1818
* [Java 21](https://openjdk.org/projects/jdk/21/) - Programming Language
19-
* [Micronaut 4](https://micronaut.io/) - The JVM-based framework used
20-
* [Apache Velocity](https://velocity.apache.org/) - Template engine for the Web Views
21-
* [Maven](https://maven.apache.org/) - Dependency Management
19+
* [Micronaut 4](https://micronaut.io/) - A Web Application framework
20+
* [Apache Velocity](https://velocity.apache.org/) - Provides templating for the Web Pages
21+
* [Maven](https://maven.apache.org/) - Build System
2222
* [Docker](https://www.docker.com/) - Containerization
2323

24+
25+
# Getting Started
26+
2427
## Prerequisites
2528
* Java 21
2629
* Maven 3.6+
2730

28-
## Getting Started
29-
Using Maven
31+
## Running the Application
32+
33+
### Option 1: Running in Development Mode
34+
35+
Clone the repository and run the application directly using Maven:
3036

3137
```bash
3238
git clone https://github.com/evolvedbinary/bbl-validator.git
3339
cd bbl-validator
3440
mvn mn:run
3541
```
3642

37-
Build the JAR
43+
The application will start on http://localhost:8080.
44+
45+
### Option 2: Building and Running the JAR
46+
47+
#### Building the JAR
48+
49+
Build an executable JAR file with all dependencies included:
3850

3951
```bash
52+
git clone https://github.com/evolvedbinary/bbl-validator.git
53+
cd bbl-validator
4054
mvn clean package
4155
```
4256

43-
Using Docker
57+
This will create an executable JAR file at `target/bbl-validator-1.0.0-SNAPSHOT.jar`.
58+
59+
#### Running the JAR
60+
61+
Once built, you can run the application using:
62+
63+
```bash
64+
# Change the server port
65+
java -Dmicronaut.server.port=9090 -jar target/bbl-validator-1.0.0-SNAPSHOT.jar
66+
67+
# Specify a schema directory
68+
java -Dschema.directory=/path/to/schema -jar target/bbl-validator-1.0.0-SNAPSHOT.jar
69+
```
70+
71+
### Option 3: Using Docker
72+
73+
#### Pulling and Running a Pre-built Image
74+
75+
Pull the latest image from Docker Hub and run it:
76+
77+
```bash
78+
docker pull evolvedbinary/bbl-validator:1.0.0-SNAPSHOT
79+
docker run -p 8080:8080 -v /path/to/schemas:/app/schemas:ro evolvedbinary/bbl-validator:1.0.0-SNAPSHOT
80+
```
81+
82+
**Note:** Replace `/path/to/schemas` with the absolute path to your schemas directory on the host machine.
83+
84+
#### Building the Docker Image (Optional)
85+
86+
If you want to build the Docker image locally:
4487

4588
```bash
4689
git clone https://github.com/evolvedbinary/bbl-validator.git
4790
cd bbl-validator
4891
mvn clean install
49-
docker run -p 8080:8080 -v /path/to/schemas:/app/schemas:ro evolvedbinary/bbl-validator:1.0.0-SNAPSHOT
5092
```
5193

52-
note: use the absolute path to the schemas directory when running the docker container.
94+
This will:
95+
1. Build the application JAR
96+
2. Create a Docker image tagged as `evolvedbinary/bbl-validator:1.0.0-SNAPSHOT`
97+
98+
Then run the locally built image:
99+
100+
```bash
101+
docker run -p 8080:8080 -v /path/to/schemas:/app/schemas:ro evolvedbinary/bbl-validator:1.0.0-SNAPSHOT
102+
```
53103

54104
## Usage
55105

@@ -78,8 +128,6 @@ The application uses application.yml for configuration.
78128
## Contact and Support
79129
Evolved Binary Limited
80130

81-
Email: admin@evolvedbinary.com.
82-
83-
Web: https://www.evolvedbinary.com.
131+
Email: tech@evolvedbinary.com
84132

85-
Phone: +44 (0)2032 397236 / +1 917 267-8787.
133+
Web: https://www.evolvedbinary.com

0 commit comments

Comments
 (0)