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
-
Clone the Repository:
git clone https://github.com/Forest-Economy-Alliance/sellifi-central.git cd sellifi-api-1
-
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
- Copy
-
Install Dependencies:
go mod tidy
-
Run Database Migrations (if applicable):
go run migrate.go
-
Start the Application:
go run main.go
-
Verify API is Running:
- Go to
http://localhost:8080
to check.
- Go to