In order to run locally:
- Node.js needs to be installed on your OS
- Clone the discord-sales-bot repo
- Start the project
- Run
npm install
to install all our project dependencies - Run
npm run dev
to run our application
- Run
npm install
downloads the packages found in package.json
npm run dev
runs the website. The website can now be accessed from localhost:3000
or 0.0.0.0
In order for queries to be made, a Helius API key is necessary - in order to obtain one, visit
https://www.helius.xyz
Now, create a file called .env.local
on the outermost directory of the cloned repo, adding the following text into the file.
HELIUS_KEY = <your Helius API key>
The app is now fully functional on your local machine.
Detailed blog explanation here.
-
Clone Repo
-
Visit Vercel, add repository and deploy with environmental variables (you may need to redeploy):
- HELIUS_KEY - API Key generated from Helius Dashboard (not RPC URL)
- DISCORD_WEBHOOK - Webhook URL from Discord (see blog)
-
Copy URL of deployed endpoint and setup a webhook at the Helius Dashboard
-
Enter other details e.g your collection's address
That's it!