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
1513git 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
2328docker-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
3038curl ' 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 )
0 commit comments