Domains18 / SIL-backend

Food Order API developed using golang, postgresql

Home Page:https://app.swaggerhub.com/apis/GIBSONSGIBSON88/food-delivery_api/1.0.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Food Delivery Order Management

FoodDelivery API is a REST API for managing orders and customers for your business. Built with Go and PostgreSQL, it features authentication, authorization, and SMS alerts.

Table of Contents

Features

  • Customer management
  • Order management
  • Authentication and authorization
  • SMS alerts
  • RESTful API

Prerequisites

  • Go (version 1.16 or higher)
  • PostgreSQL (version 18 or higher)
  • Docker (optional)

Installation

  1. Clone the repository:

    git clone https://github.com/Domains18/SIL-backend.git
    cd SIL-backend
  2. Install dependencies:

    go mod download
    go mod tidy
  3. Setup the environment variables:

    cp .env.example .env
  4. (optional) Build and run the Docker container:

    docker-compose up --build -t food-delivery
    docker run -p 8080:8080 food-delivery
  5. Run the application locally:

     go run main.go

Usage

  • The application will be available at http://localhost:8080.

Testing

  1. Run the tests:
    go test ./...

About

Food Order API developed using golang, postgresql

https://app.swaggerhub.com/apis/GIBSONSGIBSON88/food-delivery_api/1.0.0


Languages

Language:Go 96.0%Language:Makefile 3.3%Language:Dockerfile 0.7%