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.
- Customer management
- Order management
- Authentication and authorization
- SMS alerts
- RESTful API
- Go (version 1.16 or higher)
- PostgreSQL (version 18 or higher)
- Docker (optional)
-
Clone the repository:
git clone https://github.com/Domains18/SIL-backend.git cd SIL-backend
-
Install dependencies:
go mod download go mod tidy
-
Setup the environment variables:
cp .env.example .env
-
(optional) Build and run the Docker container:
docker-compose up --build -t food-delivery docker run -p 8080:8080 food-delivery
-
Run the application locally:
go run main.go
- The application will be available at
http://localhost:8080
.
- Run the tests:
go test ./...