sellifi-api-1 Installation

sellifi-api-1 is a Go Fiber application serving as the server for the web client.

1.1 Prerequisites

  • Go (version 1.19 or above)
  • Redis (for caching)
  • PostgreSQL (for persistent storage)

1.2 Installation Steps

  1. Clone the Repository:

    git clone https://github.com/Forest-Economy-Alliance/sellifi-central.git
    cd sellifi-api-1
    
  2. Set Up Environment Variables:

    • Copy .env.example to .env and fill in the required values:
      PORT=8080
      DATABASE_URL=your_postgresql_database_url
      REDIS_URL=your_redis_url
      
  3. Install Dependencies:

    go mod tidy
    
  4. Run Database Migrations (if applicable):

    go run migrate.go
    
  5. Start the Application:

    go run main.go
    
  6. Verify API is Running:

    • Go to http://localhost:8080 to check.