|
1 | 1 | ---
|
2 |
| -title: Substreams Dev Container |
3 |
| -sidebarTitle: Dev Container |
| 2 | +title: Dev Container Substreams |
| 3 | +sidebarTitle: Le Dev Container |
4 | 4 | ---
|
5 | 5 |
|
6 |
| -Develop your first project with Substreams Dev Container. |
| 6 | +Développez votre premier projet avec Substreams Dev Container. |
7 | 7 |
|
8 |
| -## What is a Dev Container? |
| 8 | +## C'est quoi un Dev Container? |
9 | 9 |
|
10 |
| -It's a tool to help you build your first project. You can either run it remotely through Github codespaces or locally by cloning the [substreams starter repository](https://github.com/streamingfast/substreams-starter?tab=readme-ov-file). |
| 10 | +C'est un outil qui vous aide à construire votre premier projet. Vous pouvez l'utiliser à distance via les codespaces Github ou localement en clonant la [repo de départ de substreams](https://github.com/streamingfast/substreams-starter?tab=readme-ov-file). |
11 | 11 |
|
12 | 12 | Inside the Dev Container, the `substreams init` command sets up a code-generated Substreams project, allowing you to easily build a Subgraph or an SQL-based solution for data handling.
|
13 | 13 |
|
14 | 14 | ## Prérequis
|
15 | 15 |
|
16 |
| -- Ensure Docker and VS Code are up-to-date. |
| 16 | +- S'assurer que Docker et VS Code sont à jour. |
17 | 17 |
|
18 |
| -## Navigating the Dev Container |
| 18 | +## Naviguer dans le Dev Container |
19 | 19 |
|
20 |
| -In the Dev Container, you can either build or import your own `substreams.yaml` and associate modules within the minimal path or opt for the automatically generated Substreams paths. Then, when you run the `Substreams Build` it will generate the Protobuf files. |
| 20 | +Dans le Dev Container, vous pouvez soit construire ou importer votre propre `substreams.yaml` et associer des modules dans le chemin minimal, soit opter pour les chemins Substreams générés automatiquement. Ensuite, lorsque vous exécutez le `Substreams Build`, il génère les fichiers Protobuf. |
21 | 21 |
|
22 | 22 | ### Options
|
23 | 23 |
|
24 |
| -- **Minimal**: Starts you with the raw block `.proto` and requires development. This path is intended for experienced users. |
25 |
| -- **Non-Minimal**: Extracts filtered data using network-specific caches and Protobufs taken from corresponding foundational modules (maintained by the StreamingFast team). This path generates a working Substreams out of the box. |
| 24 | +- **Minimal** : Vous démarre avec le bloc brut `.proto` et nécessite du développement. Ce chemin est destiné aux utilisateurs expérimentés. |
| 25 | +- **Non-Minimal** : Extrait les données filtrées en utilisant les caches spécifiques au réseau et les Protobufs provenant des modules de base correspondants (maintenus par l'équipe StreamingFast). Ce chemin génère un Substreams fonctionnel dès sa sortie de la boîte. |
26 | 26 |
|
27 |
| -To share your work with the broader community, publish your `.spkg` to [Substreams registry](https://substreams.dev/) using: |
| 27 | +Pour partager votre travail avec la communauté, publiez votre `.spkg` sur [Substreams registry](https://substreams.dev/) en utilisant : |
28 | 28 |
|
29 | 29 | - `substreams registry login`
|
30 | 30 | - `substreams registry publish`
|
31 | 31 |
|
32 |
| -> Note: If you run into any problems within the Dev Container, use the `help` command to access trouble shooting tools. |
| 32 | +> Note : Si vous rencontrez des problèmes dans le Dev Container, utilisez la commande `help` pour accéder aux outils de dépannage. |
33 | 33 |
|
34 |
| -## Building a Sink for Your Project |
| 34 | +## Construire un sink pour votre projet |
35 | 35 |
|
36 |
| -You can configure your project to query data either through a Subgraph or directly from an SQL database: |
| 36 | +Vous pouvez configurer votre projet pour qu'il interroge des données soit par l'intermédiaire d'un subgraph, soit directement à partir d'une base de données SQL : |
37 | 37 |
|
38 | 38 | - **Subgraph**: Run `substreams codegen subgraph`. This generates a project with a basic `schema.graphql` and `mappings.ts` file. You can customize these to define entities based on the data extracted by Substreams. For more configurations, see [Subgraph sink documentation](https://docs.substreams.dev/how-to-guides/sinks/subgraph).
|
39 |
| -- **SQL**: Run `substreams codegen sql` for SQL-based queries. For more information on configuring a SQL sink, refer to the [SQL documentation](https://docs.substreams.dev/how-to-guides/sinks/sql-sink). |
| 39 | +- **SQL** : Exécutez `substreams codegen sql` pour les requêtes basées sur SQL. Pour plus d'informations sur la configuration d'un sink SQL, consultez la [documentation SQL](https://docs.substreams.dev/how-to-guides/sinks/sql-sink). |
40 | 40 |
|
41 |
| -## Deployment Options |
| 41 | +## Options de déploiement |
42 | 42 |
|
43 |
| -To deploy a Subgraph, you can either run the `graph-node` locally using the `deploy-local` command or deploy to Subgraph Studio by using the `deploy` command found in the `package.json` file. |
| 43 | +Pour déployer un subgraph, vous pouvez soit exécuter le `graph-node` localement en utilisant la commande `deploy-local`, soit le déployer dans Subgraph Studio en utilisant la commande `deploy` qui se trouve dans le fichier `package.json`. |
44 | 44 |
|
45 |
| -## Common Errors |
| 45 | +## Erreurs courantes |
46 | 46 |
|
47 | 47 | - When running locally, make sure to verify that all Docker containers are healthy by running the `dev-status` command.
|
48 | 48 | - If you put the wrong start-block while generating your project, navigate to the `substreams.yaml` to change the block number, then re-run `substreams build`.
|
0 commit comments