https://github.com/dunghenry/gin_tutorial
gin + mongodb +docker
https://github.com/dunghenry/gin_tutorial
authentication docker gin-framework mongodb server-side-rendering uploads
Last synced: about 2 months ago
JSON representation
gin + mongodb +docker
- Host: GitHub
- URL: https://github.com/dunghenry/gin_tutorial
- Owner: dunghenry
- Created: 2022-10-15T05:58:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T15:38:16.000Z (over 2 years ago)
- Last Synced: 2025-01-25T19:29:19.817Z (3 months ago)
- Topics: authentication, docker, gin-framework, mongodb, server-side-rendering, uploads
- Language: Go
- Homepage:
- Size: 627 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gin + MongoDB + Docker + Authentication
### Run auto hot reload:
```js
air run main.go
```### Run server
```js
go run main.go
```### Define template
```js
{{ template "header.tmpl" . }}
```### Using docker file
```js
docker build -t username/image_name:version .
``````js
docker run -it --name container_name --rm -p 3000:3000 username/image_name:version
```### Using docker-compose
```js
docker-compose up
```### Run and build using docker-compose
```js
docker-compose up --build
```