Nuklai Feed
Build & Run from Source
To build the binary from the source, use the following command:
./scripts/build.sh
Before running, copy the example environment file to .env and configure it with the correct values:
cp .env.example .env;
Then, run the application:
./build/nuklai-feed
NOTE: Make sure to have the correct values for PostgreSQL in your .env file.
Database Operations
You can use the scripts/db.sh script to interact with the SQLite database.
-
Get All Feeds:
./scripts/db.sh get-all-transactions
-
Get Feed by TxID:
./scripts/db.sh get-feed-by-txid <TxID>
-
Get Feeds by user:
./scripts/db.sh get-feeds-by-user <WalletAddress>
Build & Run with Docker
To build the Docker image, use the following command:
./scripts/build.sh docker
Start the Docker containers:
./scripts/run_docker.sh start
To stop the Docker containers:
./scripts/run_docker.sh stop
To view the logs of the Docker container:
./scripts/run_docker.sh logs