You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-es.md
+16-37Lines changed: 16 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Ink! Explorer API
15
15
16
16
## **Acerca del explorador**
17
17
18
-
Ink Explorer es una aplicacion que provee informacion relativa a los contratos que utilizan Ink! en blockchains basadas en Substrate. Se suscribe a la blockchain y a los eventos emitidos por los modulos de Ink! y guarda la informacion en su propia base de datos PostgreSQL. El back-end expone una API que puede interactuar con la base de datos y ejecutar consultas rapidas para obtener informacion especifica en poco tiempo.
18
+
Ink Explorer es una aplicacion que provee informacion relativa a los contratos que utilizan Ink! en blockchains basadas en Substrate. Se suscribe a la blockchain y a los eventos emitidos por los modulos de Ink! y guarda la informacion en su propia base de datos. El back-end expone una API que puede interactuar con la base de datos y ejecutar consultas rapidas para obtener informacion especifica en poco tiempo.
19
19
20
20
La idea de este proyecto es brindar una herramienta que permita a los desarrolladores de Ink! explorar y analizar los contratos que se encuentran en blockchain. Esta herramienta se puede utilizar para analizar los contratos que se encuentran en blockchains basadas en Substrate que utilizan módulos Ink!. También se puede usar para analizar contratos que están en una blockchain local.
21
21
@@ -40,7 +40,7 @@ pnpm i --frozen-lockfile
40
40
41
41
### Configurar las variables de entorno
42
42
43
-
**Nota**: El archivo .env tiene la configuracion para GraphQL, la base de datos PostgreSQL, Node y la url del RPC de la blockchain basada en Substrate.
43
+
**Nota**: El archivo .env tiene la configuracion para GraphQL, la base de datos Mongo, Node y la url del RPC de la blockchain basada en Substrate.
44
44
45
45
```sh
46
46
cp .env.sample .env
@@ -67,10 +67,10 @@ GRAPHQL_INTROSPECTION=true
67
67
#### Configuraciones de la base de datos
68
68
69
69
```sh
70
-
DATABASE_HOST=postgres
70
+
DATABASE_HOST=mongo
71
71
DATABASE_NAME=ink
72
-
DATABASE_USERNAME=root
73
-
DATABASE_PASSWORD=password
72
+
DATABASE_USERNAME=mongodb
73
+
DATABASE_PASSWORD=mongodb
74
74
DATABASE_RETRY_ATTEMPTS=5
75
75
DATABASE_RETRY_DELAY=3000
76
76
```
@@ -89,37 +89,16 @@ BLOCK_CONCURRENCY=1000
89
89
90
90
## **Levantando el servicio (DEV)**
91
91
92
-
### Instanciar una BD Postgres utilizando docker (opcional)
92
+
### Instanciar una BD Mongo utilizando docker (opcional)
93
93
94
-
Para levantar el servicio es necesario contar con una **BD PostgreSQL**. Para esto, el archivo **dev-docker-compose.yaml** ya tiene una imagen configurada lista para usar.
95
-
Ejecutando el siguiente comando tambien instanciara un contenedor para pgAdmin:
94
+
Para levantar el servicio es necesario contar con una **BD Mongo**. Para esto, el archivo **dev-docker-compose.yaml** ya tiene una imagen configurada lista para usar.
95
+
Ejecutando el siguiente comando tambien instanciara un contenedor para Mongo Express:
96
96
97
97
```sh
98
98
docker-compose -f dev-docker-compose.yaml up -d
99
99
```
100
100
101
-
Una vez que el servicio se está ejecutando, se puede acceder a pgAdmin siguiendo el enlace que se muestra en la terminal (en este caso localhost:80).
102
-
103
-

104
-
105
-
Las credenciales para acceder a pgAdmin son (establecidas en el archivo dev-docker-compose):
106
-
107
-
- PGADMIN_DEFAULT_EMAIL: "admin@admin.com"
108
-
- PGADMIN_DEFAULT_PASSWORD: "admin"
109
-
110
-
Registre un nuevo servidor en pgAdmin y establezca las credenciales para la base de datos PostgreSQL:
111
-
112
-
Haga clic derecho en 'Servidores' y seleccione "Registrarse" -> "Servidor"
113
-
114
-

115
-
116
-
Establezca un nombre para el servidor (en este ejemplo, "Docker")
117
-
118
-

119
-
120
-
Establezca las credenciales para la base de datos PostgreSQL (esto se puede encontrar en el archivo dev-docker-compose):
121
-
122
-

101
+
Una vez que el servicio se está ejecutando, se puede acceder a Mongo Express siguiendo el enlace que se muestra en la terminal (en este caso localhost:8081).
123
102
124
103
### Instanciar un nodo local de Substrate (opcional)
125
104
@@ -143,17 +122,17 @@ pnpm start:dev
143
122
Ejecuta el servicio en el modo de desarrollo.
144
123
El servicio se recargará si realiza ediciones.
145
124
146
-
**Nota**: Se requiere una base de datos postgres en funcionamiento y una conexión válida a un nodo de Substrate.
125
+
**Nota**: Se requiere una base de datos Mongo en funcionamiento y una conexión válida a un nodo de Substrate.
147
126
148
127
## **Levantando el servicio (PROD)**
149
128
150
-
Para iniciar los contenedores del servicio de backend, la BD y pgAdmin ejecutar el siguiente comando:
129
+
Para iniciar los contenedores del servicio de backend, la BD y Mongo Express ejecutar el siguiente comando:
151
130
152
131
```sh
153
132
docker-compose up -d
154
133
```
155
134
156
-
**Nota**: Se requiere una base de datos postgres en funcionamiento y una conexión válida a un nodo de Substrate.
135
+
**Nota**: Se requiere una base de datos Mongo en funcionamiento y una conexión válida a un nodo de Substrate.
157
136
Opcionalmente, comente el servicio de back-end en el archivo docker-compose si desea ejecutar la imagen localmente.
158
137
159
138
## Ejecutar la imagen de Docker del servicio back-end
Copy file name to clipboardExpand all lines: README.md
+16-37Lines changed: 16 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Ink! Explorer API
15
15
16
16
## **About the explorer**
17
17
18
-
Ink Explorer is an application that provides Ink contracts related information on Substrate based blockchains. It subscribes to blockchain and Ink modules events and store the information on its own PostgreSQL database. The backend exposes an API that can interact with the DB and run fast queries to get specific information in a short time.
18
+
Ink Explorer is an application that provides Ink contracts related information on Substrate based blockchains. It subscribes to blockchain and Ink modules events and store the information on its own database. The backend exposes an API that can interact with the DB and run fast queries to get specific information in a short time.
19
19
20
20
The idea of this project is to provide a tool that allows developers of Ink! explore and analyze the contracts found on the blockchain. This tool can be used to analyze the contracts found on Substrate based blockchains that are using Ink! modules. It can also be used to analyze contracts that are on a local blockchain.
21
21
@@ -40,7 +40,7 @@ pnpm i --frozen-lockfile
40
40
41
41
### Configure the environment variables
42
42
43
-
**Note**: The .env file has the configuration for GraphQL, the PostgreSQL database, Node and the RPC url of the Substrate Blockchain.
43
+
**Note**: The .env file has the configuration for GraphQL, the Mongo database, Node and the RPC url of the Substrate Blockchain.
44
44
45
45
```sh
46
46
cp .env.sample .env
@@ -67,10 +67,10 @@ GRAPHQL_INTROSPECTION=true
67
67
#### Database configurations
68
68
69
69
```sh
70
-
DATABASE_HOST=postgres
70
+
DATABASE_HOST=mongo
71
71
DATABASE_NAME=ink
72
-
DATABASE_USERNAME=root
73
-
DATABASE_PASSWORD=password
72
+
DATABASE_USERNAME=mongodb
73
+
DATABASE_PASSWORD=mongodb
74
74
DATABASE_RETRY_ATTEMPTS=5
75
75
DATABASE_RETRY_DELAY=3000
76
76
```
@@ -89,37 +89,16 @@ BLOCK_CONCURRENCY=1000
89
89
90
90
## **Starting the project (DEV)**
91
91
92
-
### Start a Postgres DB using docker (optional)
92
+
### Start a Mongo DB using docker (optional)
93
93
94
-
To start the project a **PostgreSQL DB** is needed. For that, the **dev-docker-compose.yaml** file already has an image set up ready to use.
95
-
Running this command it will also start a container for pgAdmin:
94
+
To start the project a **Mongo DB** is needed. For that, the **dev-docker-compose.yaml** file already has an image set up ready to use.
95
+
Running this command it will also start a container for Mongo Express:
96
96
97
97
```sh
98
98
docker-compose -f dev-docker-compose.yaml up -d
99
99
```
100
100
101
-
Once the service is running, pgAdmin can be accessed following the link that is shown in the terminal (In this case localhost:80).
102
-
103
-

104
-
105
-
The credentials to access pgAdmin are (set in the dev-docker-compose file):
106
-
107
-
- PGADMIN_DEFAULT_EMAIL: "admin@admin.com"
108
-
- PGADMIN_DEFAULT_PASSWORD: "admin"
109
-
110
-
Register a new server in pgAdmin and set the credentials for the PostgreSQL DB:
111
-
112
-
Right click on 'Servers' and select "Register" -> "Server"
113
-
114
-

115
-
116
-
Set a name for the server (In this example "Docker")
117
-
118
-

119
-
120
-
Set the credentials for the PostgreSQL DB (this can be found in the dev-docker-compose file):
121
-
122
-

101
+
Once the service is running, Mongo Express can be accessed following the link that is shown in the terminal (In this case localhost:8081).
123
102
124
103
### Start a local Substrate Node (optional)
125
104
@@ -143,17 +122,17 @@ pnpm start:dev
143
122
Runs the service in the development mode.
144
123
The service will reload if you make edits.
145
124
146
-
**Note**: A postgresDB up and running and a valid connection to a substrate node are required.
125
+
**Note**: A Mongo DB up and running and a valid connection to a substrate node are required.
147
126
148
127
## **Starting the project (PROD)**
149
128
150
-
To start the backend service, DB and pgAdmin containers run the following command:
129
+
To start the backend service, Mongo DB and Mongo Express containers run the following command:
151
130
152
131
```sh
153
132
docker-compose up -d
154
133
```
155
134
156
-
**Note**: A postgresDB up and running and a valid connection to a substrate node are required.
135
+
**Note**: A Mongo DB up and running and a valid connection to a substrate node are required.
157
136
Optionally comment the backend service in the docker-compose file if you want to run the image locally.
0 commit comments