-
Notifications
You must be signed in to change notification settings - Fork 1.4k
docs: improving getting started docs for mainnet
#3500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 38 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
44b6c75
Revamping getting started docs
arboleya fbf6e02
Fixing outdated URLs
arboleya 589364b
Fixing filename
arboleya 828ff59
Renaming file
arboleya 0648a62
Fixing more filenames
arboleya fbcae14
Renaming more files, adjusting texts
arboleya 71c77b9
Using relative links
arboleya 954a7e9
What a mess
arboleya 2c59a56
Final touches and crosslinks
arboleya 12e5fc4
Update apps/docs/src/guide/getting-started/cdn-usage.md
arboleya b411514
Adding TODO with docs
arboleya dd5e55a
Update apps/docs/src/guide/getting-started/index.md
arboleya b4a3327
Adjust text
arboleya 894d803
Merge branch 'master' into aa/docs/connect-to-mainnet
arboleya bc3ccbf
Update apps/docs/src/guide/getting-started/next-steps.md
arboleya 4da22cb
Breaking section apart
arboleya 2cc989b
Lintfix
arboleya 59ad1ca
Adjusting command descriptions
arboleya 5ccc023
Revamping README
arboleya b429822
Adding changeset
arboleya bb3986a
Fixing README links
arboleya 3514761
Fixing another link
arboleya c78a525
Temporarily ignoring new pages
arboleya 2c98d3f
Touchups
arboleya 08a29c8
Fixing more URLs
arboleya be38612
Update README.md
arboleya e07491b
Simplifying and standardizing snippets
arboleya 8f55a71
Nit
arboleya d9f8842
Nit II
arboleya 18e0d17
Adjusting snippets again
arboleya 1288845
Touchups
arboleya 9339ec0
Touchups+
arboleya 51f56f3
Update README.md
arboleya 9ddf82e
Improving `fuels node` docs
arboleya f2786d3
Simplifying docs
arboleya 5ae7d8c
Oops
arboleya eacb8f8
Merge branch 'master' into aa/docs/connect-to-mainnet
arboleya e654ea2
Update apps/docs/src/guide/fuels-cli/commands.md
arboleya 83efe57
Update README.md
arboleya a4d01d4
Update README.md
arboleya 29718c4
Merge branch 'master' into aa/docs/connect-to-mainnet
arboleya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "fuels": patch | ||
| --- | ||
|
|
||
| docs: improving getting started docs for `mainnet` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| <script setup> | ||
| import { data } from '../../versions.data' | ||
| const { fuels } = data | ||
| </script> | ||
|
|
||
| # CDN Usage (browser only) | ||
|
|
||
| ```html-vue | ||
| <script type="module"> | ||
| import { | ||
| Wallet, | ||
| Provider, | ||
| } from "https://cdnjs.cloudflare.com/ajax/libs/fuels/{{fuels}}/browser.mjs"; | ||
| const main = async () => { | ||
| const provider = await Provider.create( | ||
| "https://mainnet.fuel.network/v1/graphql", | ||
| ); | ||
| const { name } = provider.getChain(); | ||
| console.log(name); | ||
| }; | ||
| main(); | ||
| </script> | ||
| ``` | ||
|
|
||
| # More | ||
|
|
||
| - [React Example](./react-example.md) |
10 changes: 0 additions & 10 deletions
10
apps/docs/src/guide/getting-started/connecting-to-a-local-node.md
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
apps/docs/src/guide/getting-started/connecting-to-testnet.md
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
apps/docs/src/guide/getting-started/connecting-to-the-network.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Connecting to the Network | ||
|
|
||
| After [installing](./installation.md) the `fuels` package, it's easy to connect to the Network: | ||
|
|
||
| <<< @./snippets/connecting-to-the-network.ts#main{ts:line-numbers} | ||
|
|
||
| # RPC URLs | ||
|
|
||
| These are our official RPC URLs: | ||
|
|
||
| | Network | URL | | ||
| | --------- | ----------------------------------------------------------- | | ||
| | Mainnet | `https://testnet.fuel.network/v1/graphql` | | ||
| | Testnet | `https://mainnet.fuel.network/v1/graphql` | | ||
| | Localhost | [Running a local Fuel node](./running-a-local-fuel-node.md) | | ||
|
|
||
| # Resources | ||
|
|
||
| Access all our apps directly: | ||
|
|
||
| | | Mainnet | Testnet | | ||
| | -------- | ------------------------------------------ | ------------------------------------------ | | ||
| | Faucet | — | https://faucet-testnet.fuel.network/ | | ||
| | Explorer | https://app.fuel.network | https://app-testnet.fuel.network | | ||
| | Bridge | https://app.fuel.network/bridge | https://app-testnet.fuel.network/bridge | | ||
| | GraphQL | https://mainnet.fuel.network/v1/playground | https://testnet.fuel.network/v1/playground | |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,12 @@ | ||
| # Getting Started | ||
|
|
||
| This guide will walk you through the process of setting up and using the Fuels-ts library in your front-end project. | ||
| Welcome to `fuels` Typescript SDK! | ||
|
|
||
| We prepared some guides to walk you through your first steps: | ||
|
|
||
| 1. [Installation](./installation.md) | ||
| 1. [Connecting to the Network](./connecting-to-the-network.md) | ||
| 1. [Running a local Fuel node](./running-a-local-fuel-node.md) | ||
| 1. [React Example](./react-example.md) | ||
| 1. [CDN Usage](./cdn-usage.md) | ||
| 1. [Next Steps](./next-steps.md) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Done! | ||
|
|
||
| Wait no more, let's build your first Fuel dApp! | ||
|
|
||
| - [Creating a Fuel dApp](../creating-a-fuel-dapp/) | ||
|
|
||
| ## Further Resources | ||
|
|
||
| For a more in-depth, step-by-step guide on working with the wider Fuel ecosystem, check out the [Developer Quickstart](https://docs.fuel.network/guides/quickstart/), which uses a more procedural and detailed approach: | ||
|
|
||
| 1. Installing all tools needed to develop with the Fuel ecosystem | ||
| 1. Writing your first Sway Project | ||
| 1. Deploying your contract | ||
| 1. Building a simple front-end dApp to interact with your deployed contract |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.