Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nagarehazh/restaurant-order-system
Golang Backend Project - Hexagonal Architecture
https://github.com/nagarehazh/restaurant-order-system
bcrypt cors docker docker-compose fiber-framework golang gorm helmet hexagonal-architecture jwt postgresql
Last synced: about 1 month ago
JSON representation
Golang Backend Project - Hexagonal Architecture
- Host: GitHub
- URL: https://github.com/nagarehazh/restaurant-order-system
- Owner: Nagarehazh
- Created: 2024-08-04T20:54:10.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T18:56:10.000Z (5 months ago)
- Last Synced: 2024-08-08T21:37:57.918Z (5 months ago)
- Topics: bcrypt, cors, docker, docker-compose, fiber-framework, golang, gorm, helmet, hexagonal-architecture, jwt, postgresql
- Language: Go
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
docker-compose up --build
```### Stop Services
To stop all services:
```bash
docker-compose down
```### View Logs
To view logs for all services:
```bash
docker-compose logs -f
```### View Logs for a Specific Service
To view logs for a specific service:
```bash
docker-compose logs -f
```### Remove Volumes
To remove all volumes:
```bash
docker-compose down -v
```### Remove Images
To remove all images:
```bash
docker rmi $(docker images -q)
```### Remove Containers
To remove all containers:
```bash
docker rm $(docker ps -a -q)
```### Remove Networks
To remove all networks:
```bash
docker network prune
```### Remove All
To remove all containers, images, volumes, and networks:
```bash
docker system prune -a
```## Accesing Database
```bash
docker-compose exec postgres psql -U postgres -d restaurant_db
```## Access the API container
```bash
docker-compose exec api sh
```