August 11, 2023

An ERC-20 token price action chart in NextJS with MongoDB and ChartJS

erc20-token-live-price-chart

👑 An ERC-20 token price action chart in NextJS with MongoDB and ChartJS. This amazing token price action chart video tutorial will display a live token price action chart with your custom ERC20 token pair on a liquidity pool like Uniswap!!

#

** THE FILES ATTACHED TO THIS REPO ARE FOR EDUCATIONAL PURPOSES ONLY **

** NOT FINANCIAL ADVISE **

** USE IT AT YOUR OWN RISK** **I'M NOT RESPONSIBLE FOR ANY USE, ISSUES ETC.. **

Click for video:

  • You need a MongoDB demo account and API Key to enable this project *

Follow this tutorial to get started in MongoDB fast:

https://www.youtube.com/watch?v=lbAp42VM8a0&t=256s

Steps to use this Repo

1-Create a new NextJS app:

npx create-next-app chart

2- Install Dependencies:

cd chart
npm i axios qs
npm i chart.js react-chartjs-2

3- Replace all files and folders in your project with the ones attached to this repo.

Add all files and folders to the root project directory "chart", overwrite when prompted.

4- Update index.js adding your MongoDB Atlas API key in quotes:

const mongokey = "ENTER-YOUR-KEY"

ctrl+s to save

** Reminder: The key is not protected using this method**

** Just for educational, learning purposes**

5- Start your application, navigate to the project page and enjoy!

npm run dev

Follow the video tutorial for explanations and guidance!