Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 days ago
JSON representation
Quick project setup with go. Includes authentication, connection to the database and authentication endpoints
- Host: GitHub
- URL: https://github.com/charlesmuchogo/gin-gorm
- Owner: CharlesMuchogo
- Created: 2023-10-01T09:09:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T01:37:55.000Z (8 days ago)
- Last Synced: 2024-11-08T02:33:33.656Z (8 days ago)
- Topics: gin, golang, gorm, postgresql
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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```