Skip to content

Nagarehazh/restaurant-order-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restaurant Order System

Description

This project is a backend for a restaurant order management system. It provides APIs for user authentication, menu management, and order processing.

Features

  • User authentication (registration, login)
  • CRUD operations for menu items
  • Order creation and management
  • Integration with PostgreSQL database

Technologies Used

  • Go (version 1.22 or higher)
  • Fiber (web framework)
  • GORM (ORM for Go)
  • PostgreSQL
  • Docker and Docker Compose

Docker Commands

Build and Start Services

To build and start all services:

docker-compose up --build

Stop Services

To stop all services:

docker-compose down

View Logs

To view logs for all services:

docker-compose logs -f

View Logs for a Specific Service

To view logs for a specific service:

docker-compose logs -f <service-name>

Remove Volumes

To remove all volumes:

docker-compose down -v

Remove Images

To remove all images:

docker rmi $(docker images -q)

Remove Containers

To remove all containers:

docker rm $(docker ps -a -q)

Remove Networks

To remove all networks:

docker network prune

Remove All

To remove all containers, images, volumes, and networks:

docker system prune -a

Accesing Database

docker-compose exec postgres psql -U postgres -d restaurant_db

Access the API container

docker-compose exec api sh