Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charlesmuchogo/gin-gorm

Quick project setup with go. Includes authentication, connection to the database and authentication endpoints
https://github.com/charlesmuchogo/gin-gorm

gin golang gorm postgresql

Last synced: about 1 month ago
JSON representation

Quick project setup with go. Includes authentication, connection to the database and authentication endpoints

Awesome Lists containing this project

README

        

## Geting started

## .env
Add .env in your project root directory with the following format

```POSTGRES_USER=postgres_user```

```POSTGRES_PASSWORD=your_password```

```POSTGRES_DB=your_database```

```HOST=postgres```

```PORT=5432```

### Start Application
1. ```sudo systemctl stop postgresql.service``` - Stop postgres
2. ```docker-compose up --build``` - Build and start application (for initial setup)
3. ```docker-compose up``` - Start app without building (for continuous development)
4. ```docker-compose up -d``` - Start in detachment mode

## Database Management
1. ```docker-compose exec db psql --username=postgres_user --dbname=your_password```