This project is a backend for a restaurant order management system. It provides APIs for user authentication, menu management, and order processing.
- User authentication (registration, login)
- CRUD operations for menu items
- Order creation and management
- Integration with PostgreSQL database
- Go (version 1.22 or higher)
- Fiber (web framework)
- GORM (ORM for Go)
- PostgreSQL
- Docker and Docker Compose
To build and start all services:
docker-compose up --build
To stop all services:
docker-compose down
To view logs for all services:
docker-compose logs -f
To view logs for a specific service:
docker-compose logs -f <service-name>
To remove all volumes:
docker-compose down -v
To remove all images:
docker rmi $(docker images -q)
To remove all containers:
docker rm $(docker ps -a -q)
To remove all networks:
docker network prune
To remove all containers, images, volumes, and networks:
docker system prune -a
docker-compose exec postgres psql -U postgres -d restaurant_db
docker-compose exec api sh