Skip to content

Commit

Permalink
Merge pull request #267 from MoralisWeb3/update-quicknode-nodejs
Browse files Browse the repository at this point in the history
Update screenshot from Quickstart NodeJS guide
  • Loading branch information
Nazeim authored Sep 26, 2023
2 parents eaca2c3 + 0e07f90 commit 41d4b55
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 31 deletions.
17 changes: 8 additions & 9 deletions docs/01-web3-data-api/aptos/getting-started/get-your-api-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ Go to the <a href="https://admin.moralis.io/register" target="_blank">Moralis Da

## Step 2: Get API Key

Get your Web3 API key from the [Moralis dashboard](https://admin.moralis.io/) by going to one of your existing project > Settings > Secrets > Copy one of your secrests.
Get your `Web3 Api Key`: Log in to your [Moralis dashboard](https://admin.moralis.io/), navigate to your project’s **Settings > Secrets**, and copy the value from **Web3 API Key - Default**.

:::info Keep Your API Key Safe
:::info Secure Your API Key - Best Practices for Cybersecurity
Protecting your API key is critical in safeguarding your sensitive account information. Adhere to these cybersecurity best practices to ensure optimal API security:

Your API key is linked to your private account. Keep your keys safe by following these best practices:

- Provide access only to those who need it
- Keep the key out of any version control system you might be using
- Use a password manager or secret management service to control access to your key
- Don't embed your secret API key in web applications or in other places where the key could be easily obtained
:::
- **Restrict Access:** Only grant access to authorized users, ensuring secure user management.
- **Avoid Version Control Exposure:** Exclude the key from any version control systems to prevent unauthorized access and potential data breaches.
- **Leverage Secret Management Services:** Utilize reputable password managers or secret management services for enhanced security.
- **Prevent Public Exposure:** Do not embed the secret API key in publicly accessible web applications or forums, mitigating the risk of unauthorized access.
:::
15 changes: 7 additions & 8 deletions docs/01-web3-data-api/evm/getting-started/get-your-api-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ Go to the <a href="https://admin.moralis.io/register" target="_blank">Moralis Da

## Step 2: Get API Key

Get your Web3 API key from the [Moralis dashboard](https://admin.moralis.io/) by going to one of your existing project > Settings > Secrets > Copy one of your secrets.
Get your `Web3 Api Key`: Log in to your [Moralis dashboard](https://admin.moralis.io/), navigate to your project’s **Settings > Secrets**, and copy the value from **Web3 API Key - Default**.

:::info Keep Your API Key Safe
:::info Secure Your API Key - Best Practices for Cybersecurity
Protecting your API key is critical in safeguarding your sensitive account information. Adhere to these cybersecurity best practices to ensure optimal API security:

Your API key is linked to your private account. Keep your keys safe by following these best practices:

- Provide access only to those who need it
- Keep the key out of any version control system you might be using
- Use a password manager or secret management service to control access to your key
- Don't embed your secret API key in web applications or in other places where the key could be easily obtained
- **Restrict Access:** Only grant access to authorized users, ensuring secure user management.
- **Avoid Version Control Exposure:** Exclude the key from any version control systems to prevent unauthorized access and potential data breaches.
- **Leverage Secret Management Services:** Utilize reputable password managers or secret management services for enhanced security.
- **Prevent Public Exposure:** Do not embed the secret API key in publicly accessible web applications or forums, mitigating the risk of unauthorized access.
:::
13 changes: 11 additions & 2 deletions docs/01-web3-data-api/evm/getting-started/quickstart-nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can find the repository with the final code [here](https://github.com/Morali
1. Create a NextJS (**recommend using NextJs version 12 project**)
2. Import and set up the latest @moralis/next
3. Integrate your application with Moralis services
4. Read any blockchain data from any blockchain
4. Read any blockchain data from any blockchain

## Prerequisites

Expand Down Expand Up @@ -92,7 +92,16 @@ NextJS is built around the concept of [pages](https://nextjs.org/docs/basic-fea

## Add Moralis to Your NextJS Dapp

1. Get your Web3 API key from the [Moralis dashboard](https://admin.moralis.io/) by going to one of your existing project > Settings > Secrets > Copy one of your secrests.
1. Get your `Web3 Api Key`: Log in to your [Moralis dashboard](https://admin.moralis.io/), navigate to your project’s **Settings > Secrets**, and copy the value from **Web3 API Key - Default**.

:::info Secure Your API Key - Best Practices for Cybersecurity
Protecting your API key is critical in safeguarding your sensitive account information. Adhere to these cybersecurity best practices to ensure optimal API security:

- **Restrict Access:** Only grant access to authorized users, ensuring secure user management.
- **Avoid Version Control Exposure:** Exclude the key from any version control systems to prevent unauthorized access and potential data breaches.
- **Leverage Secret Management Services:** Utilize reputable password managers or secret management services for enhanced security.
- **Prevent Public Exposure:** Do not embed the secret API key in publicly accessible web applications or forums, mitigating the risk of unauthorized access.
:::

2. Create a `.env.local` file at the root and add a new environment variable, `MORALIS_API_KEY`; enter your API key as the value:

Expand Down
13 changes: 10 additions & 3 deletions docs/01-web3-data-api/evm/getting-started/quickstart-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,18 @@ app.listen(port, () => {
3. Run the server by calling `npm run start`.
4. Make sure that the server runs by going to [http://localhost:3000](http://localhost:3000). It should show "Hello World!".

## Add Moralis to Your Dapp
## Add Moralis to Your NodeJS Dapp

1. Get your `Web3 Api Key` from the [Moralis dashboard](https://admin.moralis.io/):
1. Get your `Web3 Api Key`: Log in to your [Moralis dashboard](https://admin.moralis.io/), navigate to your project’s **Settings > Secrets**, and copy the value from **Web3 API Key - Default**.

![](/img/content/049946d-4n3pANatV2_KA3lpaig2g_screenshot-2022-08-08-at-150705.webp "4n3pANatV2_KA3lpaig2g_screenshot-2022-08-08-at-150705.webp")
:::info Secure Your API Key - Best Practices for Cybersecurity
Protecting your API key is critical in safeguarding your sensitive account information. Adhere to these cybersecurity best practices to ensure optimal API security:

- **Restrict Access:** Only grant access to authorized users, ensuring secure user management.
- **Avoid Version Control Exposure:** Exclude the key from any version control systems to prevent unauthorized access and potential data breaches.
- **Leverage Secret Management Services:** Utilize reputable password managers or secret management services for enhanced security.
- **Prevent Public Exposure:** Do not embed the secret API key in publicly accessible web applications or forums, mitigating the risk of unauthorized access.
:::

2. Import `moralis` and initialize it with your API key in `index.js`:
Replace the `address` with the address where you want to get crypto data from. Accordingly, replace the `chain` with the corresponding chain (you can use `EvmChain.ETHEREUM`, `EvmChain.ROPSTEN`, `EvmChain.BSC`, `EvmChain.POLYGON`, etc.). See more info on: [Data Types](/web3-data-api/moralis-data-types) and [Supported Chains](/web3-data-api/cross-chain-requests).
Expand Down
17 changes: 8 additions & 9 deletions docs/01-web3-data-api/solana/getting-started/get-your-api-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ Go to the <a href="https://admin.moralis.io/register" target="_blank">Moralis Da

## Step 2: Get API Key

Get your Web3 API key from the [Moralis dashboard](https://admin.moralis.io/) by going to one of your existing project > Settings > Secrets > Copy one of your secrests.
Get your `Web3 Api Key`: Log in to your [Moralis dashboard](https://admin.moralis.io/), navigate to your project’s **Settings > Secrets**, and copy the value from **Web3 API Key - Default**.

:::info Keep Your API Key Safe
:::info Secure Your API Key - Best Practices for Cybersecurity
Protecting your API key is critical in safeguarding your sensitive account information. Adhere to these cybersecurity best practices to ensure optimal API security:

Your API key is linked to your private account. Keep your keys safe by following these best practices:

- Provide access only to those who need it
- Keep the key out of any version control system you might be using
- Use a password manager or secret management service to control access to your key
- Don't embed your secret API key in web applications or in other places where the key could be easily obtained
:::
- **Restrict Access:** Only grant access to authorized users, ensuring secure user management.
- **Avoid Version Control Exposure:** Exclude the key from any version control systems to prevent unauthorized access and potential data breaches.
- **Leverage Secret Management Services:** Utilize reputable password managers or secret management services for enhanced security.
- **Prevent Public Exposure:** Do not embed the secret API key in publicly accessible web applications or forums, mitigating the risk of unauthorized access.
:::

1 comment on commit 41d4b55

@vercel
Copy link

@vercel vercel bot commented on 41d4b55 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.