Welcome to the Awesome Functions! This repository is designed to help you get started with our Functions serverless computing platform / edge functions, providing you with boilerplate code samples in Python and NodeJS.
These samples are tailored to assist you in integrating real-time and historic blockchain data into your applications efficiently.
Follow these steps to get started with Awesome Functions 👇
- Ensure you have Node.js and Python installed on your machine. You can download them from Node.js and Python respectively.
- A QuickNode account with access to the Functions product.
-
Clone the Repository:
git clone https://github.com/yourorganization/awesome-functions.git cd awesome-functions
-
Install Dependencies:
For Node.js projects:
npm install
For Python projects:
pip install -r requirements.txt
-
Setting Up Your Environment: Set up environment variables (such as .env) or configuration files with your API keys and other sensitive information. Never hard code your credentials in your scripts.
TBD
To package your NodeJS project (qn-token-metadata-parser
) into a ZIP archive with all dependencies included, follow these steps:
-
Navigate to your project directory:
cd qn-token-metadata-parser
-
Install project dependencies: Ensure that you have npm installed on your system. Run the following command to install dependencies:
npm install
-
Modify the .env file: Create or update your .env file with the QuickNode endpoint URL. You can obtain an endpoint from QuickNode by visiting QuickNode dashboard. Replace XXX with your actual QuickNode endpoint URL:
# Replace 'XXX' with your actual QuickNode URL QUICKNODE_URL="XXX"
-
Build the project: This step compiles your JavaScript files using Webpack and outputs the built files in the dist directory, and creates a ZIP package with .env and JS files ready to be used in Functions. Execute the following command:
npm run build
TBD
TBD
TBD
For detailed documentation on all the functions and configurations available, please visit our documentation page.
If you encounter any issues or have questions, please file an issue in this repository or contact our support team at [email protected].