Before running the application, you need to create a .env file in the root directory and provide the required environment variables. You can use the .env.example file as a template:
cp .env.example .envThen, open the .env file and add your Alchemy API key and PostgreSQL database connection details:
ALCHEMY_API_KEY=your_alchemy_api_key
DB_HOST=localhost
DB_PORT=5432
DB_USER=user
DB_PASSWORD=password
DB_NAME=price_analysis
To install dependencies:
bun installBefore running the application for the first time, you need to initialize the database by running the migration script. This will create the price_data table.
bun run db:migrateTo run the main application:
bun run index.tsThis project was created using bun init in bun v1.2.6. Bun is a fast all-in-one JavaScript runtime.