nuklai-feed

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: MIT Imports: 18 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL