https://github.com/fakorede/gin-app
An app built with the Go Gin Framework, Gorm and MySql
https://github.com/fakorede/gin-app
Last synced: about 2 months ago
JSON representation
An app built with the Go Gin Framework, Gorm and MySql
- Host: GitHub
- URL: https://github.com/fakorede/gin-app
- Owner: Fakorede
- Created: 2021-12-27T19:56:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-01T21:34:35.000Z (over 3 years ago)
- Last Synced: 2025-04-22T23:16:56.021Z (about 2 months ago)
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gin-app
An app built with Golang and the Gin Framework### Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.### Installation
```
$ git clone https://github.com/Fakorede/gin-app
$ cd gin-app
$ go mod download
```### Setup env variables
Create a `.env` file in the root of the project and add the ff variables:```
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=gin_app
DB_USER=
DB_PASS=JWT_SECRET=
JWT_ISSUER=AUTH_USERNAME=
AUTH_PASSWORD=PORT=5000
```### Run App
```
$ go run server.go
```### Docs
The api documentation is available at `http://localhost:5000/swagger/index.html`