From 0e07f90c669e81ef5a754637b74efb4ace9b8c05 Mon Sep 17 00:00:00 2001 From: Nazeim Date: Tue, 26 Sep 2023 21:21:49 +0300 Subject: [PATCH] Update screenshot from Quickstart NodeJS guide --- .../aptos/getting-started/get-your-api-key.md | 17 ++++++++--------- .../evm/getting-started/get-your-api-key.md | 15 +++++++-------- .../evm/getting-started/quickstart-nextjs.md | 13 +++++++++++-- .../evm/getting-started/quickstart-nodejs.md | 13 ++++++++++--- .../solana/getting-started/get-your-api-key.md | 17 ++++++++--------- 5 files changed, 44 insertions(+), 31 deletions(-) diff --git a/docs/01-web3-data-api/aptos/getting-started/get-your-api-key.md b/docs/01-web3-data-api/aptos/getting-started/get-your-api-key.md index 2359aaa1..0868425a 100644 --- a/docs/01-web3-data-api/aptos/getting-started/get-your-api-key.md +++ b/docs/01-web3-data-api/aptos/getting-started/get-your-api-key.md @@ -13,14 +13,13 @@ Go to the 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 -::: \ No newline at end of file +- **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. +::: diff --git a/docs/01-web3-data-api/evm/getting-started/get-your-api-key.md b/docs/01-web3-data-api/evm/getting-started/get-your-api-key.md index cd45c6a9..0868425a 100644 --- a/docs/01-web3-data-api/evm/getting-started/get-your-api-key.md +++ b/docs/01-web3-data-api/evm/getting-started/get-your-api-key.md @@ -13,14 +13,13 @@ Go to the 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. ::: diff --git a/docs/01-web3-data-api/evm/getting-started/quickstart-nextjs.md b/docs/01-web3-data-api/evm/getting-started/quickstart-nextjs.md index 81b24a0a..5da85e1e 100644 --- a/docs/01-web3-data-api/evm/getting-started/quickstart-nextjs.md +++ b/docs/01-web3-data-api/evm/getting-started/quickstart-nextjs.md @@ -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 @@ -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: diff --git a/docs/01-web3-data-api/evm/getting-started/quickstart-nodejs.md b/docs/01-web3-data-api/evm/getting-started/quickstart-nodejs.md index 4a262828..0dc30d02 100644 --- a/docs/01-web3-data-api/evm/getting-started/quickstart-nodejs.md +++ b/docs/01-web3-data-api/evm/getting-started/quickstart-nodejs.md @@ -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). diff --git a/docs/01-web3-data-api/solana/getting-started/get-your-api-key.md b/docs/01-web3-data-api/solana/getting-started/get-your-api-key.md index 2359aaa1..0868425a 100644 --- a/docs/01-web3-data-api/solana/getting-started/get-your-api-key.md +++ b/docs/01-web3-data-api/solana/getting-started/get-your-api-key.md @@ -13,14 +13,13 @@ Go to the 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 -::: \ No newline at end of file +- **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. +:::