Skip to content

Commit ecf592d

Browse files
Enhance readme (#24)
1 parent 963d0f7 commit ecf592d

File tree

3 files changed

+34
-14
lines changed

3 files changed

+34
-14
lines changed

README.md

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,42 @@
33

44
# XSender server
55

6-
Send XMLs to SUNAT in a fashion way.
6+
Envía tus XMLs a la SUNAT de manera fácil.
77

8-
# Development
8+
## Iniciar el servidor en modo desarrollo
99

10-
To start this project in development mode follow the instructions below.
11-
12-
## Clone repository
10+
Clona el repositorio:
1311

1412
```shell
1513
git clone https://github.com/project-openubl/xsender-server
1614
```
1715

18-
## Start dependencies
16+
### Inicia las dependencias
17+
18+
XSender server necesita:
1919

20-
Start the dependencies using `docker-compose.yml`:
20+
- [PostgreSQL](https://www.postgresql.org/)
21+
- [Keycloak](https://www.keycloak.org/)
22+
- [Amazon S3](https://aws.amazon.com/s3/) o [Minio](https://min.io/)
23+
- [Apache kafka](https://kafka.apache.org/)
24+
25+
Puede iniciar los servicios requeridos utilizando `docker-compose.yml`:
2126

2227
```shell
2328
docker-compose up
2429
```
2530

26-
## Configure Kafka-connect
31+
### Configura Kafka-connect
32+
33+
Una vez que todas las dependencias fueron iniciadas usando `docker-compose.yml` debes de configurar `Kafka connect`.
34+
35+
Atre un terminal y ejecuta el siguiente comando:
2736

28-
Open a terminal an execute
2937
```shell
3038
curl 'localhost:8083/connectors/' -i -X POST -H "Accept:application/json" \
3139
-H "Content-Type:application/json" \
3240
-d '{
33-
"name":"xsender-connector",
41+
"name":"postgresql-connector",
3442
"config":{
3543
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
3644
"tasks.max": "1",
@@ -46,6 +54,8 @@ curl 'localhost:8083/connectors/' -i -X POST -H "Accept:application/json" \
4654
"transforms": "outbox",
4755
"transforms.outbox.type": "io.debezium.transforms.outbox.EventRouter",
4856
"transforms.outbox.table.fields.additional.placement": "type:header:eventType",
57+
"transforms.outbox.route.topic.replacement": "outbox.event.${routedByValue}",
58+
"transforms.outbox.table.field.event.timestamp": "timestamp",
4959
"key.converter": "org.apache.kafka.connect.json.JsonConverter",
5060
"key.converter.schemas.enable": "false",
5161
"value.converter": "org.apache.kafka.connect.json.JsonConverter",
@@ -54,14 +64,21 @@ curl 'localhost:8083/connectors/' -i -X POST -H "Accept:application/json" \
5464
}'
5565
```
5666

57-
## Init server
67+
### Inicia el servidor
5868

59-
You can run your application in dev mode that enables live coding using:
69+
Puedes iniciar el servidor en modo desarrollo usando el comando:
6070

6171
```shell script
6272
./mvnw quarkus:dev
6373
```
6474

75+
### Links
76+
77+
Una vez iniciado el servidor de desarrollo puedes acceder a los siguientes links:
78+
79+
- http://localhost:8080/
80+
- http://localhost:8080/q/swagger-ui/
81+
6582
# License
6683

6784
- [Eclipse Public License - v 2.0](./LICENSE)

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@
153153
<groupId>io.quarkus</groupId>
154154
<artifactId>quarkus-smallrye-health</artifactId>
155155
</dependency>
156+
<dependency>
157+
<groupId>io.quarkus</groupId>
158+
<artifactId>quarkus-smallrye-openapi</artifactId>
159+
</dependency>
156160

157161
<dependency>
158162
<groupId>io.quarkus</groupId>

src/main/resources/META-INF/resources/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ <h1 class="pf-c-title pf-m-lg">Welcome to XSender Server</h1>
5050
<p>XSender Server is a microservice that can store your XML files and send them to SUNAT.</p>
5151
<p>To start using XSender Server you can visit the API Documentation and start using our REST endpoints.</p>
5252
</div>
53-
<a class="pf-c-button pf-m-primary" href="https://app.swaggerhub.com/apis-docs/project-openubl/xsender-server">API Documentation</a>
53+
<a class="pf-c-button pf-m-primary" href="https://project-openubl.github.io/">API Documentation</a>
5454
<div class="pf-c-empty-state__secondary">
55-
<a class="pf-c-button pf-m-link" href="https://project-openubl.github.io">Documentation</a>
5655
<a class="pf-c-button pf-m-link" href="https://github.com/project-openubl/xsender-server">Source code</a>
5756
<a class="pf-c-button pf-m-link" href="https://github.com/project-openubl/xsender">Library</a>
5857
<a class="pf-c-button pf-m-link" href="mailto:projectopenubl+subscribe@googlegroups.com">Mailing list</a>

0 commit comments

Comments
 (0)